HTML and CSS Reference
Accessing browser functionality
The only main browser object a Web Worker object has access to is the navigator object.
This object can be used to obtain information about the browser, such as the browser vendor
Due to the fact Web Workers are executing in a different environment from the main browser
thread they do not have access to the objects or functions created by any imported scripts.
with the following function call: