diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-05-31 04:06:19 +0800 |
---|---|---|
committer | kumavis <kumavis@users.noreply.github.com> | 2016-05-31 04:06:19 +0800 |
commit | 1d65160ab41bd1a316277200a98ab0f0173f23f1 (patch) | |
tree | 5baae6e648cf2d5a3bc4efa7c46883ebcce69065 | |
parent | bd7a46312b4d0db021bb1579cdb1187c58efd04b (diff) | |
parent | 9640a6c54324b7422c24d38edfd349397113fee7 (diff) | |
download | tangerine-wallet-browser-1d65160ab41bd1a316277200a98ab0f0173f23f1.tar tangerine-wallet-browser-1d65160ab41bd1a316277200a98ab0f0173f23f1.tar.gz tangerine-wallet-browser-1d65160ab41bd1a316277200a98ab0f0173f23f1.tar.bz2 tangerine-wallet-browser-1d65160ab41bd1a316277200a98ab0f0173f23f1.tar.lz tangerine-wallet-browser-1d65160ab41bd1a316277200a98ab0f0173f23f1.tar.xz tangerine-wallet-browser-1d65160ab41bd1a316277200a98ab0f0173f23f1.tar.zst tangerine-wallet-browser-1d65160ab41bd1a316277200a98ab0f0173f23f1.zip |
Merge pull request #230 from MetaMask/i150
idStore - track network failure
-rw-r--r-- | app/scripts/lib/idStore.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index 9d2552e8b..4ce4fd6f2 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -131,7 +131,10 @@ IdentityStore.prototype.revealAccount = function(cb) { } IdentityStore.prototype.getNetwork = function(tries) { - if (tries === 0) return + if (tries === 0) { + this._currentState.network = 'error' + return + } this.web3.version.getNetwork((err, network) => { if (err) { return this.getNetwork(tries - 1, cb) |