mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Use same logic for downloading state logs in the old/uat
This commit is contained in:
parent
3fb9e04f5f
commit
84c023ba40
@ -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'),
|
||||
]),
|
||||
|
Loading…
Reference in New Issue
Block a user