OS version mismatch from a browser to another
maphe opened this issue · comments
Library version
Demo page
For the issue related with detection result, you can use the demo section in https://uaparser.js.org to confirm
Describe the bug
Using the demo page on Chrome
User-Agent on screen:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
OS in json:
"os": {
"name": "macOS",
"version": "14.0.0"
}
Now opening the demo page on Safari:
UA:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
OS:
"os": {
"name": "macOS",
"version": "10.15.7"
}
Expected behavior
It should show version: 14.0.0
for both.
Additional context
For some reason, when I run it locally on my project, with 2.0.0-alpha3
on Chrome, I get the Safari behavior (os version 10.15.7
)