aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/explorer-link.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-28 05:43:09 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-28 05:43:09 +0800
commit39a84c0e47f35bc0e7c2a632683dc9ae802900b3 (patch)
tree850b9983cf1be8820a4aab9c59a3d6f40d23ee5e /ui/lib/explorer-link.js
parent0c293f9df0e6b8284f88f2362aa1099486254dab (diff)
downloadtangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.gz
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.bz2
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.lz
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.xz
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.tar.zst
tangerine-wallet-browser-39a84c0e47f35bc0e7c2a632683dc9ae802900b3.zip
Fix explorer link generation
Diffstat (limited to 'ui/lib/explorer-link.js')
-rw-r--r--ui/lib/explorer-link.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/lib/explorer-link.js b/ui/lib/explorer-link.js
index a2e7872f9..92b3376fa 100644
--- a/ui/lib/explorer-link.js
+++ b/ui/lib/explorer-link.js
@@ -1,10 +1,13 @@
module.exports = function(hash, network) {
+ const net = parseInt(network)
let prefix
- switch (network) {
+ switch (net) {
case 1: // main net
prefix = ''
+ break
case 2: // morden test net
prefix = 'testnet.'
+ break
default:
prefix = ''
}