aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-10-05 02:00:52 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-10-05 02:00:52 +0800
commitb158d7fea03a34cc48677d272b2a411b6bbe67ab (patch)
tree7984bbed73f00949ba9ab9b115e6531665311c81 /ui
parent3d80565339f02e1fa3e4bc0f8aaedbeea663a712 (diff)
downloadtangerine-wallet-browser-b158d7fea03a34cc48677d272b2a411b6bbe67ab.tar
tangerine-wallet-browser-b158d7fea03a34cc48677d272b2a411b6bbe67ab.tar.gz
tangerine-wallet-browser-b158d7fea03a34cc48677d272b2a411b6bbe67ab.tar.bz2
tangerine-wallet-browser-b158d7fea03a34cc48677d272b2a411b6bbe67ab.tar.lz
tangerine-wallet-browser-b158d7fea03a34cc48677d272b2a411b6bbe67ab.tar.xz
tangerine-wallet-browser-b158d7fea03a34cc48677d272b2a411b6bbe67ab.tar.zst
tangerine-wallet-browser-b158d7fea03a34cc48677d272b2a411b6bbe67ab.zip
Rename to maintain API
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
}