aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-04-04 00:51:33 +0800
committerkumavis <aaron@kumavis.me>2018-04-04 00:51:33 +0800
commit00657e14a8b102051157e18bbea24630ff050488 (patch)
treeac3cc49f188cfb256480adfd4f9022270b4b964c /app/scripts/background.js
parent69778416cab4900d2c6ef5876ecddc92aa63642b (diff)
downloadtangerine-wallet-browser-00657e14a8b102051157e18bbea24630ff050488.tar
tangerine-wallet-browser-00657e14a8b102051157e18bbea24630ff050488.tar.gz
tangerine-wallet-browser-00657e14a8b102051157e18bbea24630ff050488.tar.bz2
tangerine-wallet-browser-00657e14a8b102051157e18bbea24630ff050488.tar.lz
tangerine-wallet-browser-00657e14a8b102051157e18bbea24630ff050488.tar.xz
tangerine-wallet-browser-00657e14a8b102051157e18bbea24630ff050488.tar.zst
tangerine-wallet-browser-00657e14a8b102051157e18bbea24630ff050488.zip
build - correctly set METAMASK_ENV via envify
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 7782fc41e..3ad0a7863 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -22,7 +22,7 @@ const EdgeEncryptor = require('./edge-encryptor')
const getFirstPreferredLangCode = require('./lib/get-first-preferred-lang-code')
const STORAGE_KEY = 'metamask-config'
-const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
+const METAMASK_DEBUG = process.env.METAMASK_DEBUG
window.log = log
log.setDefaultLevel(METAMASK_DEBUG ? 'debug' : 'warn')
@@ -94,7 +94,7 @@ function setupController (initState, initLangCode) {
//
// MetaMask Controller
//
-
+
const controller = new MetamaskController({
// User confirmation callbacks:
showUnconfirmedMessage: triggerUi,