#Javascript Library - UAParser and Window.navigator is not able to detect the OS version.

2 messages · Page 1 of 1 (latest)

shrewd bramble
#

Hi All, recently I have been facing an issue related to the detection of the Windows version. In my Angular project, I have a javascript library - UAParser that helps detect the OS version, but in my Windows 11 laptop, it's detecting Windows 10. I also tried with "Window.navigator" object that also could not detect the correct OS version. I also tried replacing the old UAparser - "ua-parser.min.js" file with the latest version but was not helping out.
Is there any other approach we can detect the correct OS version in my Angular project..? Please let me know.

azure hinge
#

Checkout the following pages

https://docs.uaparser.js.org/v2/api/ua-parser-js/idata/with-client-hints.html

And here a GitHub issue either more information about this

https://github.com/faisalman/ua-parser-js/issues/665

GitHub

Hello, i use us-parser-js in a project. When i open my site on Windows 11, the os version always shows 10. If i open the ua-parser-js demo site in the same browser, it shows the right os version. I...