Web Worker Environment Identification?

Can I determine if Javascript is working in the context of a Web Worker?

+5
source share
1 answer

Look for type one of the objects (document, window, parent) that the web work context cannot access.

+1
source

All Articles