diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-05 19:36:33 -0400 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-05 19:36:33 -0400 |
| commit | 683b98df6daa0333cdcf3c2d7c2b7a45f74b61c4 (patch) | |
| tree | 866f18bc001e19e70503239205056c8fabc7add1 /client/src/lib/components/browser.js | |
| parent | 0db4fb0e088b55786928a994d70f1c1c6040e4ab (diff) | |
fixing obnoxious scroll bug
Diffstat (limited to 'client/src/lib/components/browser.js')
| -rw-r--r-- | client/src/lib/components/browser.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/lib/components/browser.js b/client/src/lib/components/browser.js index 2ef33c5..37af2aa 100644 --- a/client/src/lib/components/browser.js +++ b/client/src/lib/components/browser.js @@ -1,9 +1,9 @@ -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 -const isFirefox = navigator.userAgent.match('Firefox') +const isFirefox = !! navigator.userAgent.match('Firefox') export default { isIphone, |
