aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-02-28 02:36:48 +0800
committerGitHub <noreply@github.com>2017-02-28 02:36:48 +0800
commit5edb3db96939de2dee31fa19cb8e715dc649bfd6 (patch)
tree1509d7fd69ac6dee6fd466286cf85524ac7887f2 /app/scripts/background.js
parentca5cf06ae9e3e417dd3488bb0d94cdeec74ca18c (diff)
parentab01fef1c0ffddf09a20f90a910e5e068cf8c71e (diff)
downloadtangerine-wallet-browser-5edb3db96939de2dee31fa19cb8e715dc649bfd6.tar
tangerine-wallet-browser-5edb3db96939de2dee31fa19cb8e715dc649bfd6.tar.gz
tangerine-wallet-browser-5edb3db96939de2dee31fa19cb8e715dc649bfd6.tar.bz2
tangerine-wallet-browser-5edb3db96939de2dee31fa19cb8e715dc649bfd6.tar.lz
tangerine-wallet-browser-5edb3db96939de2dee31fa19cb8e715dc649bfd6.tar.xz
tangerine-wallet-browser-5edb3db96939de2dee31fa19cb8e715dc649bfd6.tar.zst
tangerine-wallet-browser-5edb3db96939de2dee31fa19cb8e715dc649bfd6.zip
Merge branch 'master' into i1144-moarrpc
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 2e5a992b9..254737dec 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -15,6 +15,10 @@ const firstTimeState = require('./first-time-state')
const STORAGE_KEY = 'metamask-config'
const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
+const log = require('loglevel')
+window.log = log
+log.setDefaultLevel(METAMASK_DEBUG ? 'debug' : 'warn')
+
let popupIsOpen = false
// state persistence