faisalman / ua-parser-js

"Unmask Your Traffic" - UAParser.js: The Essential Web Development Tool for User-Agent Detection
https://uaparser.dev/
GNU Affero General Public License v3.0
9.28k stars 1.19k forks source link

Implement userAgentData if applicable #729

Closed AKaravas closed 6 months ago

AKaravas commented 6 months ago

Modern browsers have implemented the navigator.userAgentData API. Is this supported? If not, are there plans to do so? On chrome and MacOS is active, and on firefox on an experimental version.

It is more accurate, and gives more information if a browser supports it.

faisalman commented 6 months ago

Hi thanks for using UAParser.js, the navigator.userAgentData API is already supported in our latest release (v2.0): https://github.com/faisalman/ua-parser-js/blob/2.0.0-beta.2/src/main/ua-parser.js#L95