From 6749f625284649201c3a04d4821b339d13be1c23 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Tue, 10 May 2016 23:25:38 +0300 Subject: [PATCH] add Chromium detecting related to #94 --- src/bowser.js | 7 +++++++ src/useragents.js | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/bowser.js b/src/bowser.js index be555e0..adb1130 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -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' diff --git a/src/useragents.js b/src/useragents.js index 3d16b84..c5e6b33 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -1238,4 +1238,14 @@ module.exports.useragents = { , 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 + } + } }