fix: disallow remote files

pull/6773/head^2
Konstantinos Kaloutas 2022-10-07 14:08:13 +03:00 committed by Andelf
parent 81a6d23c4d
commit 852d3b5e4a
1 changed files with 1 additions and 1 deletions

View File

@ -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!