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

Merge branch 'QupZilla' of git://github.com/yconoclast/bowser into yconoclast-QupZilla

# Conflicts:
#	README.md
#	src/useragents.js
This commit is contained in:
Denis Demchenko 2016-04-15 00:01:11 +03:00
commit e5a4bf15bc
3 changed files with 24 additions and 0 deletions

View File

@ -33,6 +33,7 @@ if (bowser.msie && bowser.version <= 6) {
* Tizen browser as `tizen`[`webkit`] * Tizen browser as `tizen`[`webkit`]
* Sailfish browser as `sailfish`[`gecko`] * Sailfish browser as `sailfish`[`gecko`]
* UC Browser as `ucbrowser`[`webkit`] * UC Browser as `ucbrowser`[`webkit`]
* QupZilla browser as `qupzilla`[`webkit`]
For all detected browsers the browser version is set in the `version` field. For all detected browsers the browser version is set in the `version` field.

View File

@ -184,6 +184,13 @@
, version: getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i) || versionIdentifier , version: getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i) || versionIdentifier
}; };
} }
else if (/qupzilla/i.test(ua)) {
result = {
name: 'QupZilla'
, qupzilla: t
, version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier
}
}
else if (/safari/i.test(ua)) { else if (/safari/i.test(ua)) {
result = { result = {
name: 'Safari' name: 'Safari'

View File

@ -1056,4 +1056,20 @@ module.exports.useragents = {
x: true x: true
} }
} }
, "QupZilla": {
'Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) QupZilla/1.8.2 Safari/538.1': {
mac: true,
qupzilla: true,
version: '1.8.2',
webkit: true,
x: true
},
'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) QupZilla/1.8.6 Safari/537.21': {
windows: true,
qupzilla: true,
version: '1.8.6',
webkit: true,
x: true
}
}
} }