diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-10 23:36:15 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-10 23:36:15 +0800 |
commit | 24a55cf7770a6154fe723cf13cdc9998e1759f3b (patch) | |
tree | aa948c2dca68eb3f609390ccba809704ece4363b /ui/app/config.js | |
parent | f6821781d2ee3b1562008f47d9581ed21efee3ef (diff) | |
download | tangerine-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.js | 8 |
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'), |