1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Merge pull request #31 from robCrawford/master

Added Chrome for iOS
This commit is contained in:
Dustin Diaz
2013-12-11 10:47:40 -08:00
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@
var ua = navigator.userAgent
, t = true
, ie = /(msie|trident)/i.test(ua)
, chrome = /chrome/i.test(ua)
, chrome = /chrome|crios/i.test(ua)
, phantom = /phantom/i.test(ua)
, safari = /safari/i.test(ua) && !chrome && !phantom
, iphone = /iphone/i.test(ua)
@@ -58,7 +58,7 @@
name: 'Chrome'
, webkit: t
, chrome: t
, version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
, version: ua.match(/(?:chrome|crios)\/(\d+(\.\d+)?)/i)[1]
}
if (phantom) return {
name: 'PhantomJS'

View File

@@ -21,7 +21,7 @@
var ua = navigator.userAgent
, t = true
, ie = /(msie|trident)/i.test(ua)
, chrome = /chrome/i.test(ua)
, chrome = /chrome|crios/i.test(ua)
, phantom = /phantom/i.test(ua)
, safari = /safari/i.test(ua) && !chrome && !phantom
, iphone = /iphone/i.test(ua)
@@ -52,7 +52,7 @@
name: 'Chrome'
, webkit: t
, chrome: t
, version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
, version: ua.match(/(?:chrome|crios)\/(\d+(\.\d+)?)/i)[1]
}
if (phantom) return {
name: 'PhantomJS'