Fork me on GitHub
#scittle
<
2023-05-15
>
Péter Szalai14:05:02

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

Péter Szalai19:05:41

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 Szalai19:05:58

will report back if I can make it work

Péter Szalai19:05:30

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 Szalai19:05:00


<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 Szalai19:05:04

any ideas why this can happen?

Matthew Downey16:06:56

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