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'

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
}
}
} }