-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Library version
"ua-parser-js": "^2.0.6"
Describe the bug
Unable to determine UC browser identity
import { UAParser } from 'ua-parser-js'
import { BrowserName } from 'ua-parser-js/enums'
console.log(uap.getResult(), UAParser().browser.is(BrowserName.UC))
Got Result
{
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
"browser": {
"name": "Chrome",
"version": "141.0.0.0",
"major": "141"
},
"cpu": {
"architecture": "amd64"
},
"device": {},
"engine": {
"name": "Blink",
"version": "141.0.0.0"
},
"os": {
"name": "Windows",
"version": "10"
}
}
false // UAParser().browser.is(BrowserName.UC)
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 UCPC/1.1.0.12' // uap.getUA()
- OS: Windows
- Browser UC
- Version 1.1.0.12
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels