-
Notifications
You must be signed in to change notification settings - Fork 944
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
Since 2.3.1/2.3.2 localStorage "debug" is removed every time (wrong Electron check) #330
Comments
My JS app uses browserify. However I've checked that |
The issue is here, in function load() {
var r;
try {
r = exports.storage.debug;
console.warn('1 - r:%o', r);
} catch(e) {}
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
if ('env' in (typeof process === 'undefined' ? {} : process)) {
r = process.env.DEBUG;
console.warn('2 - r:%o', r);
}
return r;
} And this is the output:
This is, initially it reads the I'm using envify which INDEED declares Please, fix that. If Electron checks are needed do it, but don't break other valid usages of |
Any word on getting this fix into a new version ? |
Guys, this is a terrible issue for which there is already a fix in master. Please, publish a new NPM version of debug module. |
2.3.3 published |
After upgrading my
debug
dependency from 2.3.0 to 2.3.2 nothing works again.My index.html runs the following code before running any JS library:
It has worked with any previous version of the debug library. Now it doesn't and nothing it logged.
In fact, once the the JS library (which includes the
debug
dependency) is loaded,localStorage.getItem('debug')
returns false.This is critical.
The text was updated successfully, but these errors were encountered: