diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-21 22:19:14 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-21 22:19:14 +0200 |
| commit | f0983f54c7ea863855a0e035e784bf45f1e29c5b (patch) | |
| tree | 4857dda0dba9d945b4c1198fae4d054c681c2d98 /client/util.js | |
| parent | 32858022edf1142d2b05e98290d8cca9b6a8c87a (diff) | |
mobile css
Diffstat (limited to 'client/util.js')
| -rw-r--r-- | client/util.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/util.js b/client/util.js index fe8ec35..0fe17e9 100644 --- a/client/util.js +++ b/client/util.js @@ -1,6 +1,6 @@ -const isIphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) -const isIpad = (navigator.userAgent.match(/iPad/i)) -const isAndroid = (navigator.userAgent.match(/Android/i)) +const isIphone = !! (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) +const isIpad = !! (navigator.userAgent.match(/iPad/i)) +const isAndroid = !! (navigator.userAgent.match(/Android/i)) const isMobile = isIphone || isIpad || isAndroid const isDesktop = ! isMobile |
