mirror of https://github.com/status-im/reagent.git
Fix page history
This commit is contained in:
parent
56527ed6e0
commit
d728820191
|
@ -90,8 +90,8 @@
|
|||
(History.)))
|
||||
(evt/listen hevt/NAVIGATE #(dispatch [:set-page (.-token %)]))
|
||||
(.setEnabled true))
|
||||
(when (and page (not html5) (empty? (.getToken history)))
|
||||
(dispatch [:set-page page])))))
|
||||
(when (and page (not html5) (-> history .getToken empty?))
|
||||
(.setToken history page)))))
|
||||
|
||||
(defn to-relative [f]
|
||||
(string/replace f #"^/" ""))
|
||||
|
|
Loading…
Reference in New Issue