Skip to content

Commit

Permalink
Fix server URL when on list subpage.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Feb 16, 2019
1 parent 32b376b commit 305ac77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/omgnata/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

(enable-console-print!)

(def server (atom {:url (str (.replace (-> js/document .-location .-href) ":3449" ":8000") "server.php")
(def server (atom {:url (str (-> js/document .-location .-href (.split "#") (get 0) (.replace ":3449" ":8000")) "server.php")
:poller-time 5}))

(secretary/set-config! :prefix "#")
Expand Down

0 comments on commit 305ac77

Please sign in to comment.