aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2018-02-21 11:52:32 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2018-02-21 11:52:32 +0800
commit84c023ba40b11ace63e2f2281a7c0ef1e1f2f3cb (patch)
tree7af52cc889e39e496e7ac2ef68e41b88b196ea96 /ui
parent3fb9e04f5ff8c762c85cfc2386c555868a7b794d (diff)
downloadtangerine-wallet-browser-84c023ba40b11ace63e2f2281a7c0ef1e1f2f3cb.tar.gz
tangerine-wallet-browser-84c023ba40b11ace63e2f2281a7c0ef1e1f2f3cb.tar.zst
tangerine-wallet-browser-84c023ba40b11ace63e2f2281a7c0ef1e1f2f3cb.zip
Use same logic for downloading state logs in the old/uat
Diffstat (limited to 'ui')
-rw-r--r--ui/app/settings.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js
index 988ddea8d..466f739d5 100644
--- a/ui/app/settings.js
+++ b/ui/app/settings.js
@@ -201,7 +201,13 @@ class Settings extends Component {
h('div.settings__content-item-col', [
h('button.settings__clear-button', {
onClick (event) {
- exportAsFile('MetaMask State Logs', window.logState())
+ window.logStateString((err, result) => {
+ if (err) {
+ this.state.dispatch(actions.displayWarning('Error in retrieving state logs.'))
+ } else {
+ exportAsFile('MetaMask State Logs.json', result)
+ }
+ })
},
}, 'Download State Logs'),
]),