1
0
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:
Kevin Serrano 2017-10-04 11:00:52 -07:00
parent 3d80565339
commit b158d7fea0
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
2 changed files with 8 additions and 2 deletions

View File

@ -113,7 +113,7 @@ ConfigScreen.prototype.render = function () {
alignSelf: 'center', alignSelf: 'center',
}, },
onClick (event) { onClick (event) {
window.logState((result) => { window.logStateString((result) => {
exportAsFile('MetaMask State Logs', result) exportAsFile('MetaMask State Logs', result)
}) })
}, },

View File

@ -41,7 +41,7 @@ function rootReducer (state, action) {
return state return state
} }
window.logState = function (cb) { window.logStateString = function (cb) {
let state = window.METAMASK_CACHED_LOG_STATE let state = window.METAMASK_CACHED_LOG_STATE
const version = global.platform.getVersion() const version = global.platform.getVersion()
const browser = window.navigator.userAgent 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) { function removeSeedWords (key, value) {
return key === 'seedWords' ? undefined : value return key === 'seedWords' ? undefined : value
} }