1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Added maxthon desktop support

This commit is contained in:
Julian Doucette
2018-08-29 22:44:50 +01:00
parent 505f19f207
commit 343b748986
2 changed files with 17 additions and 2 deletions

View File

@@ -170,12 +170,12 @@ const browsersList = [
},
},
{
test: [/mxios/i],
test: [/Maxthon|mxios/i],
describe(ua) {
const browser = {
name: 'Maxthon',
};
const version = getFirstMatch(commonVersionIdentifier, ua) || getFirstMatch(/(?:mxios)[\s/](\d+(\.?_?\d+)+)/i, ua);
const version = getFirstMatch(commonVersionIdentifier, ua) || getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, ua);
if (version) {
browser.version = version;