mirror of
https://github.com/metosin/reitit.git
synced 2025-12-24 02:48:25 +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)
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue