aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Luong2013-05-30 23:22:46 (EDT)
committerMark Macdonald2013-05-31 10:49:29 (EDT)
commit3d24fb54ac9e4ae1c1f95dcb0193beff4513739c (patch)
treec1b187fa7ccd9aebf1a66e480beba5952d64cf65
parent400f8ddaecef99d1772902d59440b94aa934027d (diff)
downloadorg.eclipse.orion.client-3d24fb54ac9e4ae1c1f95dcb0193beff4513739c.zip
org.eclipse.orion.client-3d24fb54ac9e4ae1c1f95dcb0193beff4513739c.tar.gz
org.eclipse.orion.client-3d24fb54ac9e4ae1c1f95dcb0193beff4513739c.tar.bz2
Bug 409451 - Browser detection alerts on Chrome for iOS
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/browserCompatibility.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/browserCompatibility.js b/bundles/org.eclipse.orion.client.ui/web/orion/browserCompatibility.js
index a1ebbf4..18fa15c 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/browserCompatibility.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/browserCompatibility.js
@@ -15,10 +15,10 @@ define(function() {
var userAgent = navigator.userAgent;
var isSupported = false;
var VERSION = 1;
- var browserData = [ {name:'Chrome', regExp: /chrome\/(\d+)/i, minVersion: 24},
- {name:'Firefox', regExp: /firefox\/(\d+)/i, minVersion: 20},
- {name:'MSIE', regExp: /msie\s(\d+)/i, minVersion: 10},
- {name:'Safari', regExp: /version\/(\d+).*?safari/i, minVersion: 6} ];
+ var browserData = [ {name: 'Chrome', regExp: /(?:chrome|crios)\/(\d+)/i, minVersion: 24},
+ {name: 'Firefox', regExp: /firefox\/(\d+)/i, minVersion: 20},
+ {name: 'MSIE', regExp: /msie\s(\d+)/i, minVersion: 10},
+ {name: 'Safari', regExp: /version\/(\d+).*?safari/i, minVersion: 6} ];
for (var i = 0; i < browserData.length; i++) {
var browser = browserData[i];