I'm using the Fetch API when available in a browser by simply testing the window.fetch
.
However in the case of Safari 10, fetch
is available in the main frame, which instantiate a web worker but it is not available in the web worker frame.
Is there a way to test if a top level function is available in a web worker from the main frame ?
Ideally, we could have a reference of the web worker instance and test if a property is available on the self
object.