aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/index.js')
-rw-r--r--src/js/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js
index bc1682e..bbef50d 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -40,6 +40,7 @@
40 DOM.indexToggle = $(".index-toggle"); 40 DOM.indexToggle = $(".index-toggle");
41 DOM.addressToggle = $(".address-toggle"); 41 DOM.addressToggle = $(".address-toggle");
42 DOM.privateKeyToggle = $(".private-key-toggle"); 42 DOM.privateKeyToggle = $(".private-key-toggle");
43 DOM.myceliumPath = $("#mycelium-path");
43 44
44 var derivationPath = $(".tab-pane.active .path").val(); 45 var derivationPath = $(".tab-pane.active .path").val();
45 46
@@ -71,10 +72,12 @@
71 if (n == "bitcoin") { 72 if (n == "bitcoin") {
72 network = Bitcoin.networks.bitcoin; 73 network = Bitcoin.networks.bitcoin;
73 DOM.bip44coin.val(0); 74 DOM.bip44coin.val(0);
75 DOM.myceliumPath.val("m/44'/0'/0'/0");
74 } 76 }
75 else if (n == "bitcoin-testnet") { 77 else if (n == "bitcoin-testnet") {
76 network = Bitcoin.networks.testnet; 78 network = Bitcoin.networks.testnet;
77 DOM.bip44coin.val(1); 79 DOM.bip44coin.val(1);
80 DOM.myceliumPath.val("m/44'/1'/0'/0");
78 } 81 }
79 else if (n == "litecoin") { 82 else if (n == "litecoin") {
80 network = Bitcoin.networks.litecoin; 83 network = Bitcoin.networks.litecoin;