1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Merge pull request #1272 from MetaMask/hideseedwordsfromlogstate

Hide seed words from UI State Dump
This commit is contained in:
Dan Finlay 2017-03-28 14:50:10 -07:00 committed by GitHub
commit d1733c1f75

View File

@ -42,6 +42,10 @@ function rootReducer (state, action) {
}
window.logState = function () {
var stateString = JSON.stringify(window.METAMASK_CACHED_LOG_STATE, null, 2)
var stateString = JSON.stringify(window.METAMASK_CACHED_LOG_STATE, removeSeedWords, 2)
console.log(stateString)
}
function removeSeedWords (key, value) {
return key === 'seedWords' ? undefined : value
}