diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-21 23:02:41 -0800 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-21 23:02:41 -0800 |
| commit | a82385e14c7ede73ef6893af8235f2e9e145da53 (patch) | |
| tree | a21ac2cd4b8385e3b2004b3a314f52ff26b76387 /StoneIsland/www/js/vendor/util.js | |
| parent | 257bb9b05c261e79643515a789319d39251de961 (diff) | |
fb
Diffstat (limited to 'StoneIsland/www/js/vendor/util.js')
| -rwxr-xr-x | StoneIsland/www/js/vendor/util.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/StoneIsland/www/js/vendor/util.js b/StoneIsland/www/js/vendor/util.js index e09b6ada..d45c4b98 100755 --- a/StoneIsland/www/js/vendor/util.js +++ b/StoneIsland/www/js/vendor/util.js @@ -173,6 +173,7 @@ var browser = (function( ua ) { // Naive useragent detection pattern var is_iphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) var is_ipad = (navigator.userAgent.match(/iPad/i)) +var is_ios = is_iphone || is_ipad var is_android = (navigator.userAgent.match(/Android/i)) var is_mobile = is_iphone || is_ipad || is_android var is_desktop = ! is_mobile; |
