mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Add support to Chrome Headless user agent
This commit is contained in:
parent
764de40fe0
commit
552915907e
@ -274,6 +274,9 @@
|
||||
/xiaomi\/miuibrowser\/([\w\.]+)/i // MIUI Browser
|
||||
], [VERSION, [NAME, 'MIUI Browser']], [
|
||||
|
||||
/(headlesschrome) ([\w\.]+)/i // Chrome Headless
|
||||
], [VERSION, [NAME, 'Chrome Headless']], [
|
||||
|
||||
/\swv\).+(chrome)\/([\w\.]+)/i // Chrome WebView
|
||||
], [[NAME, /(.+)/, '$1 WebView'], VERSION], [
|
||||
|
||||
|
@ -1,4 +1,14 @@
|
||||
[
|
||||
{
|
||||
"desc" : "Chrome Headless",
|
||||
"ua" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome Safari/537.36",
|
||||
"expect" :
|
||||
{
|
||||
"name" : "Chrome Headless",
|
||||
"version" : "HeadlessChrome",
|
||||
"major" : ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"desc" : "Android Browser on Galaxy Nexus",
|
||||
"ua" : "Mozilla/5.0 (Linux; U; Android 4.0.2; en-us; Galaxy Nexus Build/ICL53F) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
|
||||
|
Loading…
x
Reference in New Issue
Block a user