1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Fixes bugs in 6.5.1 (#6613)

* fix bg error

* fix ui exception
This commit is contained in:
Bruno Barbieri 2019-05-15 04:53:09 -04:00 committed by Frankie
parent 985f51a764
commit 1d2cf52b64
2 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ module.exports = class MetamaskController extends EventEmitter {
updatePublicConfigStore(this.getState()) updatePublicConfigStore(this.getState())
publicConfigStore.destroy = () => { publicConfigStore.destroy = () => {
this.removeEventListener('update', updatePublicConfigStore) this.removeEventListener && this.removeEventListener('update', updatePublicConfigStore)
} }
function updatePublicConfigStore (memState) { function updatePublicConfigStore (memState) {

View File

@ -1,5 +1,5 @@
module.exports = function (address, network, rpcPrefs) { module.exports = function (address, network, rpcPrefs) {
if (rpcPrefs.blockExplorerUrl) { if (rpcPrefs && rpcPrefs.blockExplorerUrl) {
return `${rpcPrefs.blockExplorerUrl}/address/${address}` return `${rpcPrefs.blockExplorerUrl}/address/${address}`
} }