mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Classify Apple TV and Chromecast as smart TVs.
This commit is contained in:
parent
a88934fadf
commit
3a78cf598d
@ -418,7 +418,7 @@
|
||||
], [MODEL, [VENDOR, 'Apple'], [TYPE, TABLET]], [
|
||||
|
||||
/(apple\s{0,1}tv)/i // Apple TV
|
||||
], [[MODEL, 'Apple TV'], [VENDOR, 'Apple']], [
|
||||
], [[MODEL, 'Apple TV'], [VENDOR, 'Apple'], [TYPE, SMARTTV]], [
|
||||
|
||||
/(archos)\s(gamepad2?)/i, // Archos
|
||||
/(hp).+(touchpad)/i, // HP TouchPad
|
||||
@ -558,7 +558,7 @@
|
||||
], [VENDOR, MODEL, [TYPE, MOBILE]], [
|
||||
|
||||
/crkey/i // Google Chromecast
|
||||
], [[MODEL, 'Chromecast'], [VENDOR, 'Google']], [
|
||||
], [[MODEL, 'Chromecast'], [VENDOR, 'Google'], [TYPE, SMARTTV]], [
|
||||
|
||||
/android.+;\s(glass)\s\d/i // Google Glass
|
||||
], [MODEL, [VENDOR, 'Google'], [TYPE, WEARABLE]], [
|
||||
|
@ -635,7 +635,8 @@
|
||||
"ua": "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.84 Safari/537.36 CrKey/1.22.79313",
|
||||
"expect": {
|
||||
"vendor": "Google",
|
||||
"model": "Chromecast"
|
||||
"model": "Chromecast",
|
||||
"type": "smarttv"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user