Skip to content

Use typeof window.process !== 'undefined' #387

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

Merged
merged 1 commit into from
Dec 20, 2016

Conversation

kribblo
Copy link
Contributor

@kribblo kribblo commented Dec 20, 2016

'process' in window returns true after window.process = null

Had this problem just now with a javascript game developed by a third party; they were setting window.process = null to support some other library that used that for some detection.

Maybe they are doing it wrong, but this should help if more people are also doing it wrong. :)

'process' in window returns true after window.process = null
@TooTallNate TooTallNate merged commit a16cf42 into debug-js:master Dec 20, 2016
@TooTallNate
Copy link
Contributor

Thanks!

@kribblo kribblo deleted the patch-1 branch December 20, 2016 21:22
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.

2 participants