diff --git a/src/platform.cljs b/src/platform.cljs index 74e6617a..ad476c63 100644 --- a/src/platform.cljs +++ b/src/platform.cljs @@ -9,10 +9,10 @@ (str/includes? user-agent "Electron")) (defonce mac? - (= js/window.api.platform "darwin")) + (and electron? (= js/window.api.platform "darwin"))) (defonce windows? - (= js/window.api.platform "win32")) + (and electron? (= js/window.api.platform "win32"))) (defonce linux? - (= js/window.api.platform "linux")) \ No newline at end of file + (and electron? (= js/window.api.platform "linux")))