mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Improve device detection: categorize PDA as mobile
This commit is contained in:
parent
36b2275add
commit
f715023f47
@ -659,7 +659,7 @@
|
|||||||
], [MODEL, [TYPE, TABLET]], [
|
], [MODEL, [TYPE, TABLET]], [
|
||||||
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i, // Unidentifiable Tablet
|
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i, // Unidentifiable Tablet
|
||||||
], [[TYPE, TABLET]], [
|
], [[TYPE, TABLET]], [
|
||||||
/(phone|mobile(?:[;\/]| safari))/i // Unidentifiable Mobile
|
/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i // Unidentifiable Mobile
|
||||||
], [[TYPE, MOBILE]], [
|
], [[TYPE, MOBILE]], [
|
||||||
/(android[\w\.\s\-]{0,9});.+buil/i // Generic Android Device
|
/(android[\w\.\s\-]{0,9});.+buil/i // Generic Android Device
|
||||||
], [MODEL, [VENDOR, 'Generic']]
|
], [MODEL, [VENDOR, 'Generic']]
|
||||||
|
@ -2514,5 +2514,14 @@
|
|||||||
"model": "undefined",
|
"model": "undefined",
|
||||||
"type": "smarttv"
|
"type": "smarttv"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc": "PDA with Windows CE",
|
||||||
|
"ua": "Mozilla/4.0 (PDA; Windows CE/1.0.1) NetFront/3.0",
|
||||||
|
"expect": {
|
||||||
|
"vendor": "undefined",
|
||||||
|
"model": "undefined",
|
||||||
|
"type": "mobile"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user