1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

fix type detection of chromium browsers

fix #142
This commit is contained in:
Denis Demchenko 2016-06-30 21:12:44 +03:00
parent c0106d31f2
commit 5bf468659a
2 changed files with 10 additions and 1 deletions

View File

@ -377,6 +377,7 @@
(result.opera && result.version >= 10.0) || (result.opera && result.version >= 10.0) ||
(result.ios && result.osversion && result.osversion.split(".")[0] >= 6) || (result.ios && result.osversion && result.osversion.split(".")[0] >= 6) ||
(result.blackberry && result.version >= 10.1) (result.blackberry && result.version >= 10.1)
|| (result.chromium && result.version >= 20)
) { ) {
result.a = t; result.a = t;
} }
@ -386,6 +387,7 @@
(result.safari && result.version < 6) || (result.safari && result.version < 6) ||
(result.opera && result.version < 10.0) || (result.opera && result.version < 10.0) ||
(result.ios && result.osversion && result.osversion.split(".")[0] < 6) (result.ios && result.osversion && result.osversion.split(".")[0] < 6)
|| (result.chromium && result.version < 20)
) { ) {
result.c = t result.c = t
} else result.x = t } else result.x = t

View File

@ -1245,7 +1245,14 @@ module.exports.useragents = {
, chromium: true , chromium: true
, version: '35.0' , version: '35.0'
, blink: true , blink: true
, x: true , a: true
}
, 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/50.0.2661.102 Chrome/50.0.2661.102 Safari/537.36': {
chromium: true
, a: true
, version: '50.0'
, linux: true
, blink: true
} }
} }
, 'SlimerJS' : { , 'SlimerJS' : {