Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Detect Windows 11 (User-Agent Client Hints) #197

Open
opusonline opened this issue Dec 6, 2021 · 1 comment
Open

Detect Windows 11 (User-Agent Client Hints) #197

opusonline opened this issue Dec 6, 2021 · 1 comment

Comments

@opusonline
Copy link

Hi. This library is extremely helpful!

Recently we came across the issue, that browsers don't report Windows 11 in the user agent string anymore.

A research revealed that there's a shift to new "User-Agent Client Hints" [1] and Windows made it even official [2] and forces developers to use this feature as the only way to detect Windows 11 (at least in Edge).

It would be awesome to see this feature also in platform.js.

Thanks in advance!

[1] https://web.dev/migrate-to-ua-ch/
[2] https://docs.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11

@culdo
Copy link

culdo commented Apr 24, 2023

If you use user-agent to detecting OS, you can consider to use UAParser.js.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants