mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Improve device detection: identify Large Screen
as smarttv
This commit is contained in:
parent
944c1fb260
commit
14a51039aa
@ -803,7 +803,7 @@
|
|||||||
// SmartTV from Unidentified Vendors
|
// SmartTV from Unidentified Vendors
|
||||||
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
||||||
], [MODEL, [TYPE, SMARTTV]], [
|
], [MODEL, [TYPE, SMARTTV]], [
|
||||||
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i
|
||||||
], [[TYPE, SMARTTV]], [
|
], [[TYPE, SMARTTV]], [
|
||||||
|
|
||||||
///////////////////
|
///////////////////
|
||||||
|
@ -281,6 +281,24 @@
|
|||||||
"type": "smarttv"
|
"type": "smarttv"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc": "Unknown TV",
|
||||||
|
"ua": "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Large Screen Safari/533.4 GoogleTV/ 162671",
|
||||||
|
"expect": {
|
||||||
|
"vendor": "undefined",
|
||||||
|
"model": "undefined",
|
||||||
|
"type": "smarttv"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"desc": "Unknown TV",
|
||||||
|
"ua": "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.41 (KHTML, like Gecko) Large Screen WebAppManager Safari/537.41",
|
||||||
|
"expect": {
|
||||||
|
"vendor": "undefined",
|
||||||
|
"model": "undefined",
|
||||||
|
"type": "smarttv"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc": "PDA with Windows CE",
|
"desc": "PDA with Windows CE",
|
||||||
"ua": "Mozilla/4.0 (PDA; Windows CE/1.0.1) NetFront/3.0",
|
"ua": "Mozilla/4.0 (PDA; Windows CE/1.0.1) NetFront/3.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user