diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-10-19 08:14:42 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-10-19 08:14:42 +0800 |
commit | 4dc494fdd10603d023962fe3a3ff844c77c46d4c (patch) | |
tree | 419b3d8c38a02150f0756d9f7ec559a3f4cf7fb9 /ui | |
parent | 21bde66e16c3a41a1cb8fca5e9e9e3e97875d23b (diff) | |
download | tangerine-wallet-browser-4dc494fdd10603d023962fe3a3ff844c77c46d4c.tar tangerine-wallet-browser-4dc494fdd10603d023962fe3a3ff844c77c46d4c.tar.gz tangerine-wallet-browser-4dc494fdd10603d023962fe3a3ff844c77c46d4c.tar.bz2 tangerine-wallet-browser-4dc494fdd10603d023962fe3a3ff844c77c46d4c.tar.lz tangerine-wallet-browser-4dc494fdd10603d023962fe3a3ff844c77c46d4c.tar.xz tangerine-wallet-browser-4dc494fdd10603d023962fe3a3ff844c77c46d4c.tar.zst tangerine-wallet-browser-4dc494fdd10603d023962fe3a3ff844c77c46d4c.zip |
Fix bug that breaks ui dev mode
Diffstat (limited to 'ui')
-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 |