1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Fix bug that breaks ui dev mode

This commit is contained in:
Dan Finlay 2017-10-18 17:14:42 -07:00
parent 21bde66e16
commit 4dc494fdd1

View File

@ -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