From 4675858b72baea2ec8b18e6add2e9b2891ec496d Mon Sep 17 00:00:00 2001 From: Konstantinos Kaloutas Date: Mon, 4 Mar 2024 17:10:09 +0200 Subject: [PATCH] fix platform --- src/platform.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")))