aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-08-23 16:16:41 +1000
committerIan Coleman <coleman.ian@gmail.com>2016-08-23 16:17:17 +1000
commit54563907c721a90f8fc9861a62fe7c214b5c5041 (patch)
tree5d752b975a02055ff93e06a86b0d7da786b489fe /src/js
parent1975bfbc2be03063046b24cb599c119675264186 (diff)
downloadBIP39-54563907c721a90f8fc9861a62fe7c214b5c5041.tar.gz
BIP39-54563907c721a90f8fc9861a62fe7c214b5c5041.tar.zst
BIP39-54563907c721a90f8fc9861a62fe7c214b5c5041.zip
Tests for passphrase and coin selection
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 68f1cda..8f7d658 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -72,9 +72,14 @@
72 // Event handlers 72 // Event handlers
73 73
74 function networkChanged(e) { 74 function networkChanged(e) {
75 var network = e.target.value; 75 var networkIndex = e.target.value;
76 networks[network].onSelect(); 76 networks[networkIndex].onSelect();
77 displayBip32Info(); 77 if (seed != null) {
78 phraseChanged();
79 }
80 else {
81 rootKeyChanged();
82 }
78 } 83 }
79 84
80 function delayedPhraseChanged() { 85 function delayedPhraseChanged() {