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

fix(browser): do not override ls debug if found #331

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

levithomason
Copy link
Contributor

@levithomason levithomason commented Nov 13, 2016

In React apps built with Webpack process.env.NODE_ENV is set as a global. This means process.env is a global object. The current browser code overrides whatever is found in localStorage. This PR returns early if a debug value is found in localStorage.

Fixes #330

@TooTallNate
Copy link
Contributor

LGTM /cc @thebigredgeek @ibc

Fixes #330 I think.

@levithomason
Copy link
Contributor Author

levithomason commented Nov 13, 2016

I believe so, exactly my issue. I've closed the issue via the description 👍

@ibc
Copy link
Contributor

ibc commented Nov 13, 2016

It seems that 20c37fd should fix #330 issue. Hope a new NPM version 2.3.3 is released soon.

@thebigredgeek
Copy link
Contributor

Yeah I'll release this morning once I get to office :)

@thebigredgeek thebigredgeek added bug This issue identifies a malfunction change-patch This proposes or provides a change that requires a patch release labels Nov 14, 2016
@thebigredgeek thebigredgeek merged commit 2caf4ef into debug-js:master Nov 14, 2016
@levithomason levithomason deleted the patch-1 branch November 14, 2016 17:26
@Ambroos
Copy link

Ambroos commented Nov 17, 2016

@thebigredgeek Any news? 2.3.2 is broken in quite a few cases and a release would be very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue identifies a malfunction change-patch This proposes or provides a change that requires a patch release
Development

Successfully merging this pull request may close these issues.

5 participants