Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for web workers, fixes #240 #241

Closed
wants to merge 1 commit into from

Conversation

nolanlawson
Copy link

It should be sufficient to check for a global window object. If the user is bonkers and actually declares a global window inside of their web worker... then well, we can't help them. The alternative would be to check for all three of window, document, and navigator, which I think is excessive.

@esamattis
Copy link

Except that you can use colors in Chrome Web Worker :)

I also needed to add a fake local storage implementation in order to get actually get it logging: esamattis@f5cb7d9

FYI: I'm hacking here because I'm trying to use debug with React Native and Chrome debugging.

@grimen
Copy link

grimen commented Apr 2, 2016

Any update on this? I just realized debug is not working in Service Workers nor Web Workers which should be considered a bug, this definitely should be merged asap...

@botverse
Copy link
Contributor

Also this won't fix #286, #303, #307

@thebigredgeek
Copy link
Contributor

Closed in lieu of #298 (already released)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants