aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-11-10 10:57:25 +1100
committerIan Coleman <coleman.ian@gmail.com>2016-11-10 10:57:25 +1100
commit88df3739e7e8b26b461a73fe3874b195e5b03fec (patch)
tree8185b4857d0aca815f3bc5e679f6eda5f66dbf9d /src
parentc193ff67e821cf66f1d5bb4fcf8cf15d8a9bcde1 (diff)
downloadBIP39-88df3739e7e8b26b461a73fe3874b195e5b03fec.tar.gz
BIP39-88df3739e7e8b26b461a73fe3874b195e5b03fec.tar.zst
BIP39-88df3739e7e8b26b461a73fe3874b195e5b03fec.zip
DOM.strength renamed DOM.generatedStrength
to avoid confusion with entropy strength
Diffstat (limited to 'src')
-rw-r--r--src/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index a717a9e..45db7b1 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -43,7 +43,7 @@
43 DOM.bip44coin = $("#bip44 .coin"); 43 DOM.bip44coin = $("#bip44 .coin");
44 DOM.bip44account = $("#bip44 .account"); 44 DOM.bip44account = $("#bip44 .account");
45 DOM.bip44change = $("#bip44 .change"); 45 DOM.bip44change = $("#bip44 .change");
46 DOM.strength = $(".strength"); 46 DOM.generatedStrength = $(".generate-container .strength");
47 DOM.hardenedAddresses = $(".hardened-addresses"); 47 DOM.hardenedAddresses = $(".hardened-addresses");
48 DOM.addresses = $(".addresses"); 48 DOM.addresses = $(".addresses");
49 DOM.rowsToAdd = $(".rows-to-add"); 49 DOM.rowsToAdd = $(".rows-to-add");
@@ -286,7 +286,7 @@
286 showValidationError(errorText); 286 showValidationError(errorText);
287 return; 287 return;
288 } 288 }
289 var numWords = parseInt(DOM.strength.val()); 289 var numWords = parseInt(DOM.generatedStrength.val());
290 var strength = numWords / 3 * 32; 290 var strength = numWords / 3 * 32;
291 var words = mnemonic.generate(strength); 291 var words = mnemonic.generate(strength);
292 DOM.phrase.val(words); 292 DOM.phrase.val(words);