Is it possible to determine whether or not Javascript is running in a Web Worker context?
Look for the typeof one of the objects (document, window, parent) that a web worker context cannot gain access to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With