diff --git a/modules/reitit-frontend/src/reitit/frontend/history.cljs b/modules/reitit-frontend/src/reitit/frontend/history.cljs index e451d212..5bcbf9d7 100644 --- a/modules/reitit-frontend/src/reitit/frontend/history.cljs +++ b/modules/reitit-frontend/src/reitit/frontend/history.cljs @@ -32,7 +32,8 @@ (.getPathPrefix history) token))) -(def ^:private current-domain (.getDomain (.parse Uri js/location))) +(def ^:private current-domain (if (exists? js/location) + (.getDomain (.parse Uri js/location)))) (defn ignore-anchor-click "Ignore click events from a elements, if the href points to URL that is part