Skip to content

Commit

Permalink
Merge pull request #17 from shinych/master
Browse files Browse the repository at this point in the history
Dispatch the URL fragment (hash) initially as well
  • Loading branch information
venantius committed Dec 7, 2015
2 parents b7982d8 + 8f975f3 commit 95457c8
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 95457c8

Please sign in to comment.