diff --git a/src/cljs/grub/core.cljs b/src/cljs/grub/core.cljs index 877d552..40e0cf3 100644 --- a/src/cljs/grub/core.cljs +++ b/src/cljs/grub/core.cljs @@ -15,9 +15,10 @@ (defn init [] (view/init) - (if-let [server-url (when grub.production grub.production/server-url)] - (do (logs "prod") (ws/connect-to-server server-url 80)) - (do (logs "dev") (ws/connect-to-server "localhost" 3000))) + (if-let [url (when grub.production grub.production/server-url)] + (let [port grub.production/server-port] + (ws/connect-to-server url port)) + (ws/connect-to-server "localhost" 3000)) (handle-grub-events)) (init) diff --git a/src/cljs/grub/websocket.cljs b/src/cljs/grub/websocket.cljs index 6c42fd0..688ba70 100644 --- a/src/cljs/grub/websocket.cljs +++ b/src/cljs/grub/websocket.cljs @@ -14,7 +14,6 @@ (defn handle-incoming-events [] (go-loop (let [event (