Use local var environment rather than NODE_ENV

Traditionally, NODE_ENV refers to an environment variable. For clarity,
let's keep it that way and don't reuse it in the renderer. Also, add a
note about explicitly overriding env vars for node-config.

// FREEBIE
This commit is contained in:
lilia 2017-04-13 12:10:42 -07:00 committed by Scott Nonnenberg
parent e7e030a5e2
commit a55c61a3ba
No known key found for this signature in database
GPG key ID: A4931C09644C654B
2 changed files with 6 additions and 3 deletions

View file

@ -9,7 +9,7 @@
};
console.log('background page reloaded');
console.log('NODE_ENV', window.config.NODE_ENV);
console.log('environment:', window.config.environment);
extension.notification.init();
var initialLoadComplete = false;