We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library version
Describe the bug Windows 11 is detected incorrectly as brower UA shows win10
To Reproduce
Use Firefox/Edge on Win11
Expected behavior OS Major Version 11
Screenshots
Desktop (please complete the following information):
Additional context
More context here: https://developers.whatismybrowser.com/learn/browser-detection/user-agents/detect-windows-11-user-agent
Microsoft provide detection script for detecting windows version 11 and greater here:
https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11#sample-code-for-detecting-windows-11
ie:
navigator.userAgentData.getHighEntropyValues(["platformVersion"]) .then(ua => { if (navigator.userAgentData.platform === "Windows") { const majorPlatformVersion = parseInt(ua.platformVersion.split('.')[0]); if (majorPlatformVersion >= 13) { console.log("Windows 11 or later"); } else if (majorPlatformVersion > 0) { console.log("Windows 10"); } else { console.log("Before Windows 10"); } } else { console.log("Not running on Windows"); } });
The text was updated successfully, but these errors were encountered:
it is detected correctly for me. possibly not defining the client hints correctly
Sorry, something went wrong.
Can you provide a screenshot of whats being displayed in https://uaparser.js.org/ ?
No branches or pull requests
Library version
Describe the bug
Windows 11 is detected incorrectly as brower UA shows win10
To Reproduce
Use Firefox/Edge on Win11
Expected behavior
OS Major Version 11
Screenshots
Desktop (please complete the following information):
Additional context
More context here: https://developers.whatismybrowser.com/learn/browser-detection/user-agents/detect-windows-11-user-agent
Microsoft provide detection script for detecting windows version 11 and greater here:
https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11#sample-code-for-detecting-windows-11
ie:
The text was updated successfully, but these errors were encountered: