mirror of
https://github.com/metosin/reitit.git
synced 2026-01-25 15:49:01 +00:00
Check if js/location exists
This commit is contained in:
parent
61a9871ebb
commit
7f1b2ce417
1 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,8 @@
|
||||||
(.getPathPrefix history)
|
(.getPathPrefix history)
|
||||||
token)))
|
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
|
(defn ignore-anchor-click
|
||||||
"Ignore click events from a elements, if the href points to URL that is part
|
"Ignore click events from a elements, if the href points to URL that is part
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue