Skip to content

Commit

Permalink
make un-memoized version electron? private
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and tiensonqin committed Dec 28, 2022
1 parent 54ec771 commit cd79319
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/frontend/util.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@

#?(:cljs
(do
(defn ios*?
(defn- ios*?
[]
(utils/ios))
(def ios? (memoize ios*?))))

#?(:cljs
(do
(defn safari*?
(defn- safari*?
[]
(let [ua (string/lower-case js/navigator.userAgent)]
(and (string/includes? ua "webkit")
Expand All @@ -98,7 +98,7 @@

#?(:cljs
(do
(defn mobile*?
(defn- mobile*?
"Triggering condition: Mobile phones
*** Warning!!! ***
For UX logic only! Don't use for FS logic
Expand All @@ -110,7 +110,7 @@

#?(:cljs
(do
(defn electron*?
(defn- electron*?
[]
(when (and js/window (gobj/get js/window "navigator"))
(gstring/caseInsensitiveContains js/navigator.userAgent " electron")))
Expand Down

0 comments on commit cd79319

Please sign in to comment.