aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/config.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-10-10 23:36:15 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-10-10 23:36:15 +0800
commit24a55cf7770a6154fe723cf13cdc9998e1759f3b (patch)
treeaa948c2dca68eb3f609390ccba809704ece4363b /ui/app/config.js
parentf6821781d2ee3b1562008f47d9581ed21efee3ef (diff)
downloadtangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar
tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.gz
tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.bz2
tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.lz
tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.xz
tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.tar.zst
tangerine-wallet-browser-24a55cf7770a6154fe723cf13cdc9998e1759f3b.zip
Make the function callback friendly.
Diffstat (limited to 'ui/app/config.js')
-rw-r--r--ui/app/config.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/config.js b/ui/app/config.js
index 75c3bcf13..c14fa1d28 100644
--- a/ui/app/config.js
+++ b/ui/app/config.js
@@ -113,8 +113,12 @@ ConfigScreen.prototype.render = function () {
alignSelf: 'center',
},
onClick (event) {
- window.logStateString((result) => {
- exportAsFile('MetaMask State Logs', result)
+ window.logStateString((err, result) => {
+ if (err) {
+ state.dispatch(actions.displayWarning('Error in retrieving state logs.'))
+ } else {
+ exportAsFile('MetaMask State Logs', result)
+ }
})
},
}, 'Download State Logs'),