mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Fix bug that breaks ui dev mode
This commit is contained in:
parent
21bde66e16
commit
4dc494fdd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user