diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2017-10-21 00:09:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-21 00:09:44 +0800 |
commit | e3a7da961dd01bcb936a000cdf62e2290a5024ef (patch) | |
tree | 516bd55226d160ec888627906884933894c016a4 /ui/app | |
parent | 87ad6a29f09763c1fa6910b36c946dc00dcf4b6c (diff) | |
parent | c24e266118b7db093a1db0b8c87c361011a16952 (diff) | |
download | tangerine-wallet-browser-e3a7da961dd01bcb936a000cdf62e2290a5024ef.tar tangerine-wallet-browser-e3a7da961dd01bcb936a000cdf62e2290a5024ef.tar.gz tangerine-wallet-browser-e3a7da961dd01bcb936a000cdf62e2290a5024ef.tar.bz2 tangerine-wallet-browser-e3a7da961dd01bcb936a000cdf62e2290a5024ef.tar.lz tangerine-wallet-browser-e3a7da961dd01bcb936a000cdf62e2290a5024ef.tar.xz tangerine-wallet-browser-e3a7da961dd01bcb936a000cdf62e2290a5024ef.tar.zst tangerine-wallet-browser-e3a7da961dd01bcb936a000cdf62e2290a5024ef.zip |
Merge pull request #2389 from MetaMask/i2348-SelectAccountOnNewVault
Select first account on create or restore vault
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/reducers.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/reducers.js b/ui/app/reducers.js index 6a2f44534..1cded7ca7 100644 --- a/ui/app/reducers.js +++ b/ui/app/reducers.js @@ -43,7 +43,12 @@ function rootReducer (state, action) { window.logState = function () { let state = window.METAMASK_CACHED_LOG_STATE - const version = global.platform.getVersion() + let version + try { + version = global.platform.getVersion() + } catch (e) { + version = 'unable to load version.' + } state.version = version let stateString = JSON.stringify(state, removeSeedWords, 2) return stateString |