mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
Merge pull request #1272 from MetaMask/hideseedwordsfromlogstate
Hide seed words from UI State Dump
This commit is contained in:
commit
d1733c1f75
@ -42,6 +42,10 @@ function rootReducer (state, action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.logState = function () {
|
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)
|
console.log(stateString)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeSeedWords (key, value) {
|
||||||
|
return key === 'seedWords' ? undefined : value
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user