MQTT.js
MQTT.js copied to clipboard
Flagged use of navigator.userAgent
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..!
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
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.