Skip to content

Commit

Permalink
fix platform
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Mar 4, 2024
1 parent 2c15e71 commit 4675858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
(and electron? (= js/window.api.platform "linux")))

0 comments on commit 4675858

Please sign in to comment.