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

Add detection of MZBrowser

fixes #219
This commit is contained in:
Denis Demchenko 2018-06-28 21:12:27 +03:00
parent d4558db0ff
commit dbdc014300
2 changed files with 20 additions and 0 deletions

View File

@ -78,6 +78,13 @@
, version: getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i) , version: getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)
} }
} }
else if (/MZBrowser/i.test(ua)) {
result = {
name: 'MZ Browser'
, mzbrowser: t
, version: getFirstMatch(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (/coast/i.test(ua)) { else if (/coast/i.test(ua)) {
result = { result = {
name: 'Opera Coast' name: 'Opera Coast'
@ -432,6 +439,7 @@
(result.chrome && result.version >= 20) || (result.chrome && result.version >= 20) ||
(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.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) ||

View File

@ -1584,4 +1584,16 @@ module.exports.useragents = {
, a: true , a: true
} }
} }
, 'MZ Browser': {
'Mozilla/5.0 (Linux; U; Android 6.0; zh-CN; MZ-PRO 6 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 MZBrowser/6.9.511-2018012510 UWS/2.11.0.33 Mobile Safari/537.36': {
osname: 'Android'
, mzbrowser: true
, android: true
, mobile: true
, osversion: '6.0'
, version: '6.9.511'
, blink: true
, a: true
}
}
} }