Improve device detection: categorize PDA as mobile

This commit is contained in:
Faisal Salman 2021-04-12 12:24:34 +07:00
parent 36b2275add
commit f715023f47
2 changed files with 10 additions and 1 deletions

View File

@ -659,7 +659,7 @@
], [MODEL, [TYPE, TABLET]], [
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i, // Unidentifiable Tablet
], [[TYPE, TABLET]], [
/(phone|mobile(?:[;\/]| safari))/i // Unidentifiable Mobile
/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i // Unidentifiable Mobile
], [[TYPE, MOBILE]], [
/(android[\w\.\s\-]{0,9});.+buil/i // Generic Android Device
], [MODEL, [VENDOR, 'Generic']]

View File

@ -2514,5 +2514,14 @@
"model": "undefined",
"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"
}
}
]