faisalman / ua-parser-js

UAParser.js - The Essential Tool for User-Agent Detection in JavaScript & Web Development.
https://uaparser.dev/
GNU Affero General Public License v3.0
8.85k stars 1.18k forks source link

Implement userAgentData if applicable #729

Closed AKaravas closed 1 month ago

AKaravas commented 1 month 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 1 month 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