Skip to content

Commit 2caf4ef

Browse files
Merge pull request #331 from levithomason/patch-1
fix(browser): do not override ls debug if found
2 parents a746d52 + 20c37fd commit 2caf4ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

browser.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,13 @@ function save(namespaces) {
140140
function load() {
141141
var r;
142142
try {
143-
r = exports.storage.debug;
143+
return exports.storage.debug;
144144
} catch(e) {}
145145

146146
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
147147
if (typeof process !== 'undefined' && 'env' in process) {
148-
r = process.env.DEBUG;
148+
return process.env.DEBUG;
149149
}
150-
151-
return r;
152150
}
153151

154152
/**

0 commit comments

Comments
 (0)