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

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

@opusonline

Description

@opusonline

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions