From dff5cc37be979f2c122d63980c8c3440d8cf3a64 Mon Sep 17 00:00:00 2001 From: Dustin Diaz Date: Mon, 7 Apr 2014 16:51:03 -0700 Subject: [PATCH] bump `a` version browsers --- src/bowser.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bowser.js b/src/bowser.js index f33c21e..6759637 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -112,7 +112,7 @@ , blackberry: t , version: versionIdentifier || getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i) } - } + } else if (/(web|hpw)os/i.test(ua)) { result = { name: 'WebOS' @@ -197,19 +197,19 @@ // Graded Browser Support // http://developer.yahoo.com/yui/articles/gbs - if ((result.msie && result.version >= 9) || + if ((result.msie && result.version >= 10) || (result.chrome && result.version >= 20) || - (result.firefox && result.version >= 10.0) || - (result.safari && result.version >= 5) || + (result.firefox && result.version >= 20.0) || + (result.safari && result.version >= 6) || (result.opera && result.version >= 10.0) || (result.ios && result.osversion && result.osversion.split(".")[0] >= 6) ) { result.a = t; } - else if ((result.msie && result.version < 9) || + else if ((result.msie && result.version < 10) || (result.chrome && result.version < 20) || - (result.firefox && result.version < 10.0) || - (result.safari && result.version < 5) || + (result.firefox && result.version < 20.0) || + (result.safari && result.version < 6) || (result.opera && result.version < 10.0) || (result.ios && result.osversion && result.osversion.split(".")[0] < 6) ) {