summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/vendor/util.js
diff options
context:
space:
mode:
authorRene Ae <aehtyb@gmail.com>2015-12-22 01:26:29 -0600
committerRene Ae <aehtyb@gmail.com>2015-12-22 01:26:29 -0600
commitc8ea1aef25e28665478b9d94c4f63d26cda784b1 (patch)
tree2bc079dac25e40c5f818be8f698ccc1594d4bc9f /StoneIsland/platforms/ios/www/js/vendor/util.js
parent89b39c69c00c180287912f4777ea2ec487fa6412 (diff)
parentbed982d4cbea6752ed2fe03c3163842f2205601c (diff)
Merge branch 'android' of https://github.com/okfocus/stone-island into android
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/vendor/util.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/vendor/util.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/vendor/util.js b/StoneIsland/platforms/ios/www/js/vendor/util.js
index e09b6ada..d45c4b98 100755
--- a/StoneIsland/platforms/ios/www/js/vendor/util.js
+++ b/StoneIsland/platforms/ios/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;