MQTT.js icon indicating copy to clipboard operation
MQTT.js copied to clipboard

Flagged use of navigator.userAgent

Open aaron-613 opened this issue 1 year ago • 2 comments

Hi there. My Chrome browser is complaining about the following:

Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform 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.

navigator.userAgent seems to appear in my minified version of MQTT.js. Checked the most recent version (5.0.2) and still there. I don't really mind, just flagging for your interest.

Thanks! And keep up the good work..!

aaron-613 avatar Aug 11 '23 01:08 aaron-613

Wondering where that comes from as there is no navigator.userAgent in the code. I think it comes from some polifilly. Thanks for pointing this out

robertsLando avatar Aug 11 '23 06:08 robertsLando

This is an automated message to let you know that this issue has gone 365 days without any activity. In order to ensure that we work on issues that still matter, this issue will be closed in 14 days.

If this issue is still important, you can simply comment with a "bump" to keep it open.

Thank you for your contribution.

github-actions[bot] avatar Aug 11 '24 01:08 github-actions[bot]