diff --git a/src/bowser.js b/src/bowser.js index c0e0825..fb8f3eb 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -68,6 +68,13 @@ , 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) { result = { name: 'Windows Phone' @@ -291,7 +298,7 @@ if (result.msedge || (result.msie && result.version >= 10) || (result.yandexbrowser && result.version >= 15) || - (result.vivaldi && result.version >= 1.0) || + (result.vivaldi && result.version >= 1.0) || (result.chrome && result.version >= 20) || (result.firefox && result.version >= 20.0) || (result.safari && result.version >= 6) || diff --git a/src/useragents.js b/src/useragents.js index 49f42cf..ec27910 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -1145,4 +1145,16 @@ module.exports.useragents = { 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 + } + } }