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

add Chromium detecting

related to #94
This commit is contained in:
Denis Demchenko 2016-05-10 23:25:38 +03:00
parent ca54003f29
commit 6749f62528
2 changed files with 17 additions and 0 deletions

View File

@ -227,6 +227,13 @@
, version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier , version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier
} }
} }
else if (/chromium/i.test(ua)) {
result = {
name: 'Chromium'
, chromium: t
, version: getFirstMatch(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i) || versionIdentifier
}
}
else if (/chrome|crios|crmo/i.test(ua)) { else if (/chrome|crios|crmo/i.test(ua)) {
result = { result = {
name: 'Chrome' name: 'Chrome'

View File

@ -1238,4 +1238,14 @@ module.exports.useragents = {
, x: true , x: true
} }
} }
, 'Chromium': {
'Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36': {
mobile: true
, linux: true
, chromium: true
, version: '35.0'
, blink: true
, x: true
}
}
} }