diff --git a/src/main/ua-parser.js b/src/main/ua-parser.js index 4966699..13bb4cc 100755 --- a/src/main/ua-parser.js +++ b/src/main/ua-parser.js @@ -777,6 +777,8 @@ ], [[MODEL, CHROMECAST+' Nest Hub'], [VENDOR, GOOGLE], [TYPE, SMARTTV]], [ /crkey/i // Google Chromecast, Linux-based or unknown ], [[MODEL, CHROMECAST], [VENDOR, GOOGLE], [TYPE, SMARTTV]], [ + /(portaltv)/i // Facebook Portal TV + ], [MODEL, [VENDOR, FACEBOOK], [TYPE, SMARTTV]], [ /droid.+aft(\w+)( bui|\))/i // Fire TV ], [MODEL, [VENDOR, AMAZON], [TYPE, SMARTTV]], [ /(shield \w+ tv)/i // Nvidia Shield TV diff --git a/test/data/ua/device/facebook.json b/test/data/ua/device/facebook.json index 01e1c97..f08f81f 100644 --- a/test/data/ua/device/facebook.json +++ b/test/data/ua/device/facebook.json @@ -34,5 +34,14 @@ "model": "Quest Pro", "type": "xr" } + }, + { + "desc": "Portal TV", + "ua": "Mozilla/5.0 (Linux; Android 9; PortalTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.120 Mobile Safari/537.36", + "expect": { + "vendor": "Facebook", + "model": "PortalTV", + "type": "smarttv" + } } ] \ No newline at end of file