Skip to content
New issue

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

navigator.userAgent changing soon in Chrome #126

Open
laurentpayot opened this issue Jun 7, 2021 · 1 comment
Open

navigator.userAgent changing soon in Chrome #126

laurentpayot opened this issue Jun 7, 2021 · 1 comment

Comments

@laurentpayot
Copy link

New issues panel of Chrome 93 gives me this alert for my Elm js file:

A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. In a future version of Chrome, 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.

@lydell
Copy link

lydell commented Jun 30, 2024

I think it’s due to this line:

_Browser_window.navigator.userAgent.indexOf('Trident') < 0 || _Browser_window.addEventListener('hashchange', key);

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

No branches or pull requests

2 participants