web api instance property
WorkerNavigator: userAgentData property
Limited availabilitySecure contextAvailable in workers
The userAgentData read-only property of the WorkerNavigator interface returns a NavigatorUAData object which can be used to access the User-Agent Client Hints API.
Value
A NavigatorUAData object.
Examples
The following example prints the value of brands to the console.
console.log(navigator.userAgentData.brands);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.