https://clojurians.slack.com/archives/C03S1L9DN/p1520241082000427
figwheel uses clojure.java.browse
https://github.com/bhauman/lein-figwheel/blob/bf3e046774c5736af923f0bb4b3964083efb3a58/sidecar/src/figwheel_sidecar/components/cljs_autobuild.clj#L129
clojure.java.browse uses your system xdg-open
(or open
on osx)
https://github.com/clojure/clojure/blob/ef00c7cffad10e6104d333f7f71a29163b06cd0a/src/clj/clojure/java/browse.clj#L66
So, will be very hard you use a not-default browser on figwheel.
Thanks @souenzzo. It's not the answer I was hoping for but it's certainly not the end of the world.
hello! I'm having trouble getting figwheel to reload when replacing the whole document using reagent like this (r/render [(fn [] @current-page)] js/document))
. It still compiles, but I have to refresh manually. Any ideas?
please send you figwheel settings (inside project.clj, :cljsbuild or something like)
@souenzzo here it is. i think its pretty standard. It works great when i just hook into a particular element.
:websocket-host "<http://foo.bar.com|foo.bar.com>"
<< you r developing with domains? It's usually localhost
yeah i am
@mcama200 don't destroy the document
use a node inside the document
its an attempt at isomorphism. I have a top level component that will hopefully handle the html/header tags and loading scripts across a couple of repos. I wanted to be able to have access to it on the client as well.
yeah, that seems pretty shakey, when you require app.js the first thing goog closure does is write a bunch of script tags to include your dependencies
i see. thanks for your help!
@mcama200 glad I could 🙂