diff options
-rw-r--r-- | app/scripts/platforms/extension.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js index 0c2d222b8..4df7a30aa 100644 --- a/app/scripts/platforms/extension.js +++ b/app/scripts/platforms/extension.js @@ -1,5 +1,5 @@ const extension = require('extensionizer') -const {createExplorerLink: explorerLink} = require('etherscan-link') +// const {createExplorerLink: explorerLink} = require('etherscan-link') class ExtensionPlatform { @@ -64,11 +64,13 @@ class ExtensionPlatform { this._subscribeToNotificationClicked() - const url = explorerLink(txMeta.hash, parseInt(txMeta.metamaskNetworkId)) + // const url = explorerLink(txMeta.hash, parseInt(txMeta.metamaskNetworkId)) + const prefix = (parseInt(txMeta.metamaskNetworkId) === 373) ? '' : 'testnet.' + const url = `http://${prefix}tangerine.garden/transaction/${txMeta.hash}` const nonce = parseInt(txMeta.txParams.nonce, 16) const title = 'Confirmed transaction' - const message = `Transaction ${nonce} confirmed! View on EtherScan` + const message = `Transaction ${nonce} confirmed! View on Tangerine Garden` this._showNotification(title, message, url) } |