mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Rename to maintain API
This commit is contained in:
parent
3d80565339
commit
b158d7fea0
@ -113,7 +113,7 @@ ConfigScreen.prototype.render = function () {
|
||||
alignSelf: 'center',
|
||||
},
|
||||
onClick (event) {
|
||||
window.logState((result) => {
|
||||
window.logStateString((result) => {
|
||||
exportAsFile('MetaMask State Logs', result)
|
||||
})
|
||||
},
|
||||
|
@ -41,7 +41,7 @@ function rootReducer (state, action) {
|
||||
return state
|
||||
}
|
||||
|
||||
window.logState = function (cb) {
|
||||
window.logStateString = function (cb) {
|
||||
let state = window.METAMASK_CACHED_LOG_STATE
|
||||
const version = global.platform.getVersion()
|
||||
const browser = window.navigator.userAgent
|
||||
@ -54,6 +54,12 @@ window.logState = function (cb) {
|
||||
})
|
||||
}
|
||||
|
||||
window.logState() = function () {
|
||||
return window.logStateString((result) => {
|
||||
return result
|
||||
})
|
||||
}
|
||||
|
||||
function removeSeedWords (key, value) {
|
||||
return key === 'seedWords' ? undefined : value
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user