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

Merge branch 'release/1.3.0'

This commit is contained in:
Denis Demchenko 2016-05-19 00:59:52 +03:00
commit 32c8beb81e
4 changed files with 35 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"sniff",
"detection"
],
"version": "1.2.0",
"version": "1.3.0",
"homepage": "https://github.com/ded/bowser",
"scripts": [
"src/bowser.js"

View File

@ -7,7 +7,7 @@
"sniff",
"detection"
],
"version": "1.2.0",
"version": "1.3.0",
"homepage": "https://github.com/ded/bowser",
"author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)",
"main": "./src/bowser.js",

View File

@ -191,6 +191,13 @@
, version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i)
}
}
else if (/slimerjs/i.test(ua)) {
result = {
name: 'SlimerJS'
, slimer: t
, version: getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i)
}
}
else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) {
result = {
name: 'BlackBerry'
@ -227,6 +234,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'

View File

@ -1238,4 +1238,23 @@ 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
}
}
, 'SlimerJS' : {
'Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 SlimerJS/0.7': {
linux: true
, slimer: true
, version: '0.7'
, gecko: true
, x: true
}
}
}