Skip to content

Commit

Permalink
dispatch the URL fragment (hash) initially as well
Browse files Browse the repository at this point in the history
  • Loading branch information
shinych committed Dec 6, 2015
1 parent b7982d8 commit 8f975f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/accountant/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,6 @@
(defn dispatch-current! []
"Dispatch current URI path."
(let [path (-> js/window .-location .-pathname)
query (-> js/window .-location .-search)]
(secretary/dispatch! (str path query))))
query (-> js/window .-location .-search)
hash (-> js/window .-location .-hash)]
(secretary/dispatch! (str path query hash))))

0 comments on commit 8f975f3

Please sign in to comment.