Browse Source

fix: call error

charlie 4 years ago
parent
commit
2b15bd7934
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/util.cljc

+ 1 - 1
src/main/frontend/util.cljc

@@ -1377,7 +1377,7 @@
 #?(:cljs
    (defn fix-open-external-with-shift!
      [^js/MouseEvent e]
-     (when (and (.-shiftKey e) util/win32? (util/electron?)
+     (when (and (.-shiftKey e) win32? (electron?)
                 (= (string/lower-case (.. e -target -nodeName)) "a")
                 (string/starts-with? (.. e -target -href) "file:"))
        (.preventDefault e))))