scittle

Péter Szalai 2023-05-15T14:28:02.303069Z

has anyone been able to connect to a scittle chrome extensions with nrepl?

Matthew Downey 2023-06-03T16:29:56.225629Z

Even with normal cljs I can't get the REPL to work with browser extensions

Péter Szalai 2023-05-22T19:08:30.909159Z

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.

Péter Szalai 2023-05-22T19:09:00.463359Z


<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>

Péter Szalai 2023-05-22T19:09:03.250929Z

the pop up

Péter Szalai 2023-05-22T19:10:04.012519Z

any ideas why this can happen?

borkdude 2023-05-15T14:41:51.632449Z

I assume you're familiar with https://github.com/babashka/scittle/tree/main/doc/nrepl right?

Péter Szalai 2023-05-15T19:53:41.302999Z

Yes, it works well for website, but extensions has some strict constraints. scripts cannot be loaded from hosted version, there is no .-hostname , etc ..

Péter Szalai 2023-05-15T19:53:58.161479Z

will report back if I can make it work