WorkerNavigator: userAgentData property
User-Agent Client Hints APIworker
User-Agent Client Hints APIworker
The userAgentData read-only property of the WorkerNavigator interface returns a NavigatorUAData object which can be used to access the .
Value
A NavigatorUAData object.
Examples
The following example prints the value of NavigatorUAData.brands to the console.
console.log(navigator.userAgentData.brands);