aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/app/config.js2
-rw-r--r--ui/app/reducers.js8
2 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/config.js b/ui/app/config.js
index 9ba00b3dd..75c3bcf13 100644
--- a/ui/app/config.js
+++ b/ui/app/config.js
@@ -113,7 +113,7 @@ ConfigScreen.prototype.render = function () {
alignSelf: 'center',
},
onClick (event) {
- window.logState((result) => {
+ window.logStateString((result) => {
exportAsFile('MetaMask State Logs', result)
})
},
diff --git a/ui/app/reducers.js b/ui/app/reducers.js
index 385cafdfa..8ffd572c0 100644
--- a/ui/app/reducers.js
+++ b/ui/app/reducers.js
@@ -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
}