mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-10-22 19:26:13 +02:00
parent
985f51a764
commit
1d2cf52b64
@ -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) {
|
||||||
|
@ -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}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user