WorkerNavigator: userAgentData property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Note: This feature is only available inWeb Workers.
TheuserAgentData read-only property of theWorkerNavigator interface returns aNavigatorUAData object which can be used to access theUser-Agent Client Hints API.
In this article
Value
ANavigatorUAData object.
Examples
The following example prints the value ofNavigatorUAData.brands to the console.
js
console.log(navigator.userAgentData.brands);Specifications
| Specification |
|---|
| User-Agent Client Hints> # dom-navigatorua-useragentdata> |