has anyone been able to connect to a scittle chrome extensions with nrepl?
Even with normal cljs I can't get the REPL to work with browser extensions
In extension I cannot really just load code from remote source, so I added http://scittle.to the extensions and I'm trying to load it in a pop up, but I always get a bunch of seeming unrelated warning and cljs code doesn't run in the pop up.
<html>
<head>
<script src="js/scittle.js" type="application/javascript"></script>
<script type="application/x-scittle">
(defn my-alert []
(js/alert "You clicked!"))
</script>
</head>
<body>
<button onclick="my_alert()">
Click me!
</button>
</body>
</html>the pop up
any ideas why this can happen?
I assume you're familiar with https://github.com/babashka/scittle/tree/main/doc/nrepl right?
Yes, it works well for website, but extensions has some strict constraints. scripts cannot be loaded from hosted version, there is no .-hostname , etc ..
will report back if I can make it work