mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix casing of Etherscan (#6927)
This commit is contained in:
parent
329c376449
commit
948b6ca80b
@ -68,7 +68,7 @@ class ExtensionPlatform {
|
|||||||
const nonce = parseInt(txMeta.txParams.nonce, 16)
|
const nonce = parseInt(txMeta.txParams.nonce, 16)
|
||||||
|
|
||||||
const title = 'Confirmed transaction'
|
const title = 'Confirmed transaction'
|
||||||
const message = `Transaction ${nonce} confirmed! View on EtherScan`
|
const message = `Transaction ${nonce} confirmed! View on Etherscan`
|
||||||
this._showNotification(title, message, url)
|
this._showNotification(title, message, url)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,12 +92,12 @@ class ExtensionPlatform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_subscribeToNotificationClicked () {
|
_subscribeToNotificationClicked () {
|
||||||
if (!extension.notifications.onClicked.hasListener(this._viewOnEtherScan)) {
|
if (!extension.notifications.onClicked.hasListener(this._viewOnEtherscan)) {
|
||||||
extension.notifications.onClicked.addListener(this._viewOnEtherScan)
|
extension.notifications.onClicked.addListener(this._viewOnEtherscan)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_viewOnEtherScan (txId) {
|
_viewOnEtherscan (txId) {
|
||||||
if (txId.startsWith('http://')) {
|
if (txId.startsWith('http://')) {
|
||||||
extension.tabs.create({ url: txId })
|
extension.tabs.create({ url: txId })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user