mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Added maxthon desktop support
This commit is contained in:
parent
505f19f207
commit
343b748986
@ -170,12 +170,12 @@ const browsersList = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: [/mxios/i],
|
test: [/Maxthon|mxios/i],
|
||||||
describe(ua) {
|
describe(ua) {
|
||||||
const browser = {
|
const browser = {
|
||||||
name: 'Maxthon',
|
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) {
|
if (version) {
|
||||||
browser.version = version;
|
browser.version = version;
|
||||||
|
@ -2261,6 +2261,21 @@
|
|||||||
engine:
|
engine:
|
||||||
name: "WebKit"
|
name: "WebKit"
|
||||||
version: "601.1.46"
|
version: "601.1.46"
|
||||||
|
-
|
||||||
|
ua: "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/4.1.0.4000 Chrome/26.0.1410.43 Safari/537.1"
|
||||||
|
spec:
|
||||||
|
browser:
|
||||||
|
name: "Maxthon"
|
||||||
|
version: "4.1.0.4000"
|
||||||
|
os:
|
||||||
|
name: "Windows"
|
||||||
|
version: "NT 6.1"
|
||||||
|
versionName: "7"
|
||||||
|
platform:
|
||||||
|
type: "desktop"
|
||||||
|
engine:
|
||||||
|
name: "WebKit"
|
||||||
|
version: "537.1"
|
||||||
Epiphany:
|
Epiphany:
|
||||||
-
|
-
|
||||||
ua: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Debian/buildd-unstable (3.18.5-1) Epiphany/3.18.5"
|
ua: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Debian/buildd-unstable (3.18.5-1) Epiphany/3.18.5"
|
||||||
|
Loading…
Reference in New Issue
Block a user