mirror of https://github.com/logseq/logseq
fix: tests
parent
5712d84b0b
commit
4437534685
|
@ -1554,11 +1554,13 @@ Arg *stop: atom, reset to true to stop the loop"
|
|||
(defn parse-params
|
||||
"Parse URL parameters into a hashmap"
|
||||
[]
|
||||
(->> js/window
|
||||
(.-location)
|
||||
(.-search)
|
||||
(new js/URLSearchParams)
|
||||
(seq)
|
||||
(js->clj)
|
||||
(into {})
|
||||
(walk/keywordize-keys))))
|
||||
(if node-test?
|
||||
{}
|
||||
(->> js/window
|
||||
(.-location)
|
||||
(.-search)
|
||||
(new js/URLSearchParams)
|
||||
(seq)
|
||||
(js->clj)
|
||||
(into {})
|
||||
(walk/keywordize-keys)))))
|
||||
|
|
Loading…
Reference in New Issue