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:
parent
5f933390f6
commit
d22d9207cb
@ -32,6 +32,7 @@ if (bowser.msie && bowser.version <= 6) {
|
|||||||
* Bada browser as `bada`[`webkit`]
|
* Bada browser as `bada`[`webkit`]
|
||||||
* Tizen browser as `tizen`[`webkit`]
|
* Tizen browser as `tizen`[`webkit`]
|
||||||
* Sailfish browser as `sailfish`[`gecko`]
|
* Sailfish browser as `sailfish`[`gecko`]
|
||||||
|
* 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.
|
||||||
|
|
||||||
|
@ -168,6 +168,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'
|
||||||
|
@ -970,5 +970,20 @@ module.exports.useragents = {
|
|||||||
, version: '2.15'
|
, version: '2.15'
|
||||||
, 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': {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user