diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-08-12 10:44:59 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-08-12 10:44:59 +0800 |
commit | b1f68ec9cd2549a7b52272407f1543ae0b1d9326 (patch) | |
tree | b497e51e3adf3f2a6cb54d243bf3cd1af6892f80 /app/scripts/lib/idStore.js | |
parent | 1e54a1b5e84988038039ad30648d14ad263f60e3 (diff) | |
download | tangerine-wallet-browser-b1f68ec9cd2549a7b52272407f1543ae0b1d9326.tar tangerine-wallet-browser-b1f68ec9cd2549a7b52272407f1543ae0b1d9326.tar.gz tangerine-wallet-browser-b1f68ec9cd2549a7b52272407f1543ae0b1d9326.tar.bz2 tangerine-wallet-browser-b1f68ec9cd2549a7b52272407f1543ae0b1d9326.tar.lz tangerine-wallet-browser-b1f68ec9cd2549a7b52272407f1543ae0b1d9326.tar.xz tangerine-wallet-browser-b1f68ec9cd2549a7b52272407f1543ae0b1d9326.tar.zst tangerine-wallet-browser-b1f68ec9cd2549a7b52272407f1543ae0b1d9326.zip |
Add global var for background.
Diffstat (limited to 'app/scripts/lib/idStore.js')
-rw-r--r-- | app/scripts/lib/idStore.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index c6ac55a03..f63e03ec6 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -153,8 +153,9 @@ IdentityStore.prototype.getNetwork = function (err) { this._currentState.network = 'loading' return this._didUpdate() } - - console.log('web3.getNetwork returned ' + network) + if (global.METAMASK_DEBUG) { + console.log('web3.getNetwork returned ' + network) + } this._currentState.network = network this._didUpdate() }) @@ -475,7 +476,9 @@ IdentityStore.prototype._restoreFromSeed = function (password, seed, derivedKey) keyStore.generateNewAddress(derivedKey, 3) configManager.setWallet(keyStore.serialize()) - console.log('restored from seed. saved to keystore') + if (global.METAMASK_DEBUG) { + console.log('restored from seed. saved to keystore') + } return keyStore } |