diff --git a/browser.js b/browser.js index 26070efe..aeb1e214 100644 --- a/browser.js +++ b/browser.js @@ -140,15 +140,13 @@ function save(namespaces) { function load() { var r; try { - r = exports.storage.debug; + return exports.storage.debug; } catch(e) {} // If debug isn't set in LS, and we're in Electron, try to load $DEBUG if (typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; + return process.env.DEBUG; } - - return r; } /**