Fix #601 - Detect Chrome OS without version

This commit is contained in:
Faisal Salman 2023-01-31 15:09:14 +07:00
parent c9d1ab9561
commit f8e5a1fb4f
2 changed files with 10 additions and 1 deletions

View File

@ -738,7 +738,7 @@
// Google Chromecast // Google Chromecast
/crkey\/([\d\.]+)/i // Google Chromecast /crkey\/([\d\.]+)/i // Google Chromecast
], [VERSION, [NAME, CHROME+'cast']], [ ], [VERSION, [NAME, CHROME+'cast']], [
/(cros) [\w]+ ([\w\.]+\w)/i // Chromium OS /(cros) [\w]+(?:\)| ([\w\.]+)\b)/i // Chromium OS
], [[NAME, 'Chromium OS'], VERSION],[ ], [[NAME, 'Chromium OS'], VERSION],[
// Smart TVs // Smart TVs

View File

@ -665,6 +665,15 @@
"version" : "1.9.2.22-0.1mdv2010.2" "version" : "1.9.2.22-0.1mdv2010.2"
} }
}, },
{
"desc" : "Chrome OS",
"ua" : "Mozilla/5.0 (X11; CrOS x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.0.0 Safari/537.36",
"expect" :
{
"name" : "Chromium OS",
"version" : "undefined"
}
},
{ {
"desc" : "Chromium OS", "desc" : "Chromium OS",
"ua" : "Mozilla/5.0 (X11; CrOS x86_64 10575.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", "ua" : "Mozilla/5.0 (X11; CrOS x86_64 10575.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",