From 881a012c7bdafb59e1bbbc04d13f4969dd7b370b Mon Sep 17 00:00:00 2001 From: Chen Wei Date: Thu, 4 Jul 2019 11:27:31 +0800 Subject: update extension notification --- app/scripts/platforms/extension.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/scripts') 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) } -- cgit