mirror of https://github.com/logseq/logseq
fix: disallow remote files
parent
81a6d23c4d
commit
852d3b5e4a
|
@ -115,7 +115,7 @@
|
|||
(when parsed-url
|
||||
(condp contains? (.-protocol parsed-url)
|
||||
#{"https:" "http:" "mailto:"} (.openExternal shell url)
|
||||
#{"file:"} (default-open url)
|
||||
#{"file:"} (when (empty? (.-host parsed-url)) (default-open url))
|
||||
nil))))
|
||||
|
||||
(defn setup-window-listeners!
|
||||
|
|
Loading…
Reference in New Issue