Skip to content

Commit

Permalink
remove console metamask error (#286)
Browse files Browse the repository at this point in the history
should fix #285
  • Loading branch information
tafonina authored Dec 19, 2022
1 parent 1f20476 commit 3f3d883
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ui/core/src/baseApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,12 @@ export default {
this.loadMe()

// when accounts loaded register accountsChanged handler and reload page if user changes the account
web3.eth.getAccounts(() => {
window.ethereum.on('accountsChanged', function () {
window.location.reload()
})
window.ethereum.on('chainChanged', function (e) {
console.log('Chain changed')
window.location.reload()
})
window.ethereum.on('accountsChanged', function () {
window.location.reload()
})
window.ethereum.on('chainChanged', function (e) {
console.log('Chain changed')
window.location.reload()
})
}
}

0 comments on commit 3f3d883

Please sign in to comment.