From 20c37fdc169eeb42f34d22b11362f66a6a64b19e Mon Sep 17 00:00:00 2001 From: Levi Thomason Date: Sun, 13 Nov 2016 10:26:59 -0800 Subject: [PATCH] fix(browser): do not override ls debug if found --- browser.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } /**