1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +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
}
}
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)) {
result = {
name: 'Chrome'