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

add support of Maxthon browser on iOS

This commit is contained in:
Denis Demchenko 2016-05-08 14:37:10 +03:00
parent 35f635b845
commit e55dd78792
2 changed files with 20 additions and 1 deletions

View File

@ -68,6 +68,13 @@
, version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i) , version: getFirstMatch(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)
} }
} }
else if (/mxios/i.test(ua)) {
result = {
name: 'Maxthon'
, maxthon: t
, version: getFirstMatch(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)
}
}
else if (windowsphone) { else if (windowsphone) {
result = { result = {
name: 'Windows Phone' name: 'Windows Phone'
@ -291,7 +298,7 @@
if (result.msedge || if (result.msedge ||
(result.msie && result.version >= 10) || (result.msie && result.version >= 10) ||
(result.yandexbrowser && result.version >= 15) || (result.yandexbrowser && result.version >= 15) ||
(result.vivaldi && result.version >= 1.0) || (result.vivaldi && result.version >= 1.0) ||
(result.chrome && result.version >= 20) || (result.chrome && result.version >= 20) ||
(result.firefox && result.version >= 20.0) || (result.firefox && result.version >= 20.0) ||
(result.safari && result.version >= 6) || (result.safari && result.version >= 6) ||

View File

@ -1145,4 +1145,16 @@ module.exports.useragents = {
x: true x: true
} }
} }
, 'Maxthon': {
'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E238 Safari/601.1 MXiOS/4.8.6.59': {
mobile: true
, ios: true
, iphone: true
, version: '4.8.6.59'
, osversion: '9.3.1'
, webkit: true
, maxthon: true
, a: true
}
}
} }