Skip to content

Commit

Permalink
cljc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Jul 25, 2023
1 parent 275cd1d commit ca87860
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions editor2/src/main/maria/cloud/routes.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
(defn match-route [path]
(when-let [{:keys [route-params
handler]} (bidi/match-route @!routes path)]
(merge route-params handler {::path path
::query-params (query-params/path->map path)
::hash (some-> js/location.hash (subs 1))})))
(merge route-params handler
{::path path
::query-params (query-params/path->map path)}
#?(:cljs {::hash (some-> js/location.hash (subs 1))}))))

#?(:cljs (declare history))

#?(:cljs
Expand Down

0 comments on commit ca87860

Please sign in to comment.