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

fix #100 - Exception with QupZilla

This commit is contained in:
Jose Tavares 2015-10-18 20:21:29 +01:00
parent 5f933390f6
commit d22d9207cb
3 changed files with 24 additions and 1 deletions

View File

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

View File

@ -168,6 +168,13 @@
, 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)) {
result = {
name: 'Safari'

View File

@ -970,5 +970,20 @@ module.exports.useragents = {
, version: '2.15'
, x: true
}
}
},
"QupZilla": {
'Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) QupZilla/1.8.2 Safari/538.1': {
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': {
qupzilla: true,
version: '1.8.6',
webkit: true,
x: true
}
}
};