mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
parent
dbdc014300
commit
6e78874470
@ -92,6 +92,13 @@
|
|||||||
, version: versionIdentifier || getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i)
|
, version: versionIdentifier || getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (/focus/i.test(ua)) {
|
||||||
|
result = {
|
||||||
|
name: 'Focus'
|
||||||
|
, focus: t
|
||||||
|
, version: getFirstMatch(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (/yabrowser/i.test(ua)) {
|
else if (/yabrowser/i.test(ua)) {
|
||||||
result = {
|
result = {
|
||||||
name: 'Yandex Browser'
|
name: 'Yandex Browser'
|
||||||
@ -440,6 +447,7 @@
|
|||||||
(result.samsungBrowser && result.version >= 4) ||
|
(result.samsungBrowser && result.version >= 4) ||
|
||||||
(result.whale && compareVersions([result.version, '1.0']) === 1) ||
|
(result.whale && compareVersions([result.version, '1.0']) === 1) ||
|
||||||
(result.mzbrowser && compareVersions([result.version, '6.0']) === 1) ||
|
(result.mzbrowser && compareVersions([result.version, '6.0']) === 1) ||
|
||||||
|
(result.focus && compareVersions([result.version, '1.0']) === 1) ||
|
||||||
(result.firefox && result.version >= 20.0) ||
|
(result.firefox && result.version >= 20.0) ||
|
||||||
(result.safari && result.version >= 6) ||
|
(result.safari && result.version >= 6) ||
|
||||||
(result.opera && result.version >= 10.0) ||
|
(result.opera && result.version >= 10.0) ||
|
||||||
|
@ -1596,4 +1596,16 @@ module.exports.useragents = {
|
|||||||
, a: true
|
, a: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
, 'Focus' : {
|
||||||
|
'Mozilla/5.0 (Linux; Android 7.1.1) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Focus/1.2.1 Chrome/59.0.3071.125': {
|
||||||
|
osname: 'Android'
|
||||||
|
, focus: true
|
||||||
|
, android: true
|
||||||
|
, tablet: true
|
||||||
|
, osversion: '7.1.1'
|
||||||
|
, version: '1.2.1'
|
||||||
|
, blink: true
|
||||||
|
, a: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user