Add detection of Firefox Focus

Fixes #191
v1.x^2
Denis Demchenko 6 years ago
parent dbdc014300
commit 6e78874470

@ -92,6 +92,13 @@
, 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)) {
result = {
name: 'Yandex Browser'
@ -440,6 +447,7 @@
(result.samsungBrowser && result.version >= 4) ||
(result.whale && compareVersions([result.version, '1.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.safari && result.version >= 6) ||
(result.opera && result.version >= 10.0) ||

@ -1596,4 +1596,16 @@ module.exports.useragents = {
, 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…
Cancel
Save