mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Merge pull request #228 from arturom/develop
Added Google Chromemast detection
This commit is contained in:
commit
946ba02c54
@ -626,6 +626,9 @@
|
|||||||
/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i // OPPO
|
/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i // OPPO
|
||||||
], [VENDOR, MODEL, [TYPE, MOBILE]], [
|
], [VENDOR, MODEL, [TYPE, MOBILE]], [
|
||||||
|
|
||||||
|
/crkey/i // Google Chromecast
|
||||||
|
], [[MODEL, 'Chromecast'], [VENDOR, 'Google']], [
|
||||||
|
|
||||||
/android.+;\s(glass)\s\d/i // Google Glass
|
/android.+;\s(glass)\s\d/i // Google Glass
|
||||||
], [MODEL, [VENDOR, 'Google'], [TYPE, WEARABLE]], [
|
], [MODEL, [VENDOR, 'Google'], [TYPE, WEARABLE]], [
|
||||||
|
|
||||||
|
@ -490,6 +490,16 @@
|
|||||||
"type" : "mobile"
|
"type" : "mobile"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"desc" : "Google Chromecast",
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
"desc" : "Google Pixel C",
|
"desc" : "Google Pixel C",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user