prevent some unnecessary cljs repl reconnection attempts

suggested improvement noted in https://github.com/tomjakubowski/weasel/issues/24
This commit is contained in:
Gered 2014-09-28 12:16:22 -04:00
parent b5646383d5
commit e960b6b822

View file

@ -23,7 +23,8 @@
(defn init-app []
(when (dev?)
(enable-console-print!)
(if (supports-ws?)
(if (and (supports-ws?)
(not (ws-repl/alive?)))
(ws-repl/connect "ws://localhost:9001" :verbose true)))
(secretary/set-config! :prefix "#")
(hook-browser-navigation!))