mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
fix order: Chrome should be almost lowest, but before Safari
This commit is contained in:
parent
251eca7ff0
commit
d6fb6d5358
@ -124,13 +124,6 @@
|
|||||||
, version: getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i) || versionIdentifier
|
, version: getFirstMatch(/vivaldi\/(\d+(\.\d+)?)/i) || versionIdentifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (/chrome|crios|crmo/i.test(ua)) {
|
|
||||||
result = {
|
|
||||||
name: 'Chrome'
|
|
||||||
, chrome: t
|
|
||||||
, version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (sailfish) {
|
else if (sailfish) {
|
||||||
result = {
|
result = {
|
||||||
name: 'Sailfish'
|
name: 'Sailfish'
|
||||||
@ -162,12 +155,6 @@
|
|||||||
, version : getFirstMatch(/silk\/(\d+(\.\d+)?)/i)
|
, version : getFirstMatch(/silk\/(\d+(\.\d+)?)/i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (android) {
|
|
||||||
result = {
|
|
||||||
name: 'Android'
|
|
||||||
, version: versionIdentifier
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (/phantom/i.test(ua)) {
|
else if (/phantom/i.test(ua)) {
|
||||||
result = {
|
result = {
|
||||||
name: 'PhantomJS'
|
name: 'PhantomJS'
|
||||||
@ -211,6 +198,19 @@
|
|||||||
, version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier
|
, version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (/chrome|crios|crmo/i.test(ua)) {
|
||||||
|
result = {
|
||||||
|
name: 'Chrome'
|
||||||
|
, chrome: t
|
||||||
|
, version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (android) {
|
||||||
|
result = {
|
||||||
|
name: 'Android'
|
||||||
|
, version: versionIdentifier
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (/safari|applewebkit/i.test(ua)) {
|
else if (/safari|applewebkit/i.test(ua)) {
|
||||||
result = {
|
result = {
|
||||||
name: 'Safari'
|
name: 'Safari'
|
||||||
|
Loading…
Reference in New Issue
Block a user