mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
parent
985f51a764
commit
1d2cf52b64
@ -343,7 +343,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
||||
updatePublicConfigStore(this.getState())
|
||||
|
||||
publicConfigStore.destroy = () => {
|
||||
this.removeEventListener('update', updatePublicConfigStore)
|
||||
this.removeEventListener && this.removeEventListener('update', updatePublicConfigStore)
|
||||
}
|
||||
|
||||
function updatePublicConfigStore (memState) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
module.exports = function (address, network, rpcPrefs) {
|
||||
if (rpcPrefs.blockExplorerUrl) {
|
||||
if (rpcPrefs && rpcPrefs.blockExplorerUrl) {
|
||||
return `${rpcPrefs.blockExplorerUrl}/address/${address}`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user