Skip to content

Chrome is complaining about access to navigator #185

@eoghanmurray

Description

@eoghanmurray

var mac = navigator.platform.indexOf('Mac') !== -1,

"A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
"

With a link to https://blog.chromium.org/2021/09/user-agent-reduction-origin-trial-and-dates.html

Could the code just be updated to accept either metaKey or ctrlKey as a valid modifier irrespective of platform?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions