mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-05 18:43:47 +00:00
DOM.strength renamed DOM.generatedStrength
to avoid confusion with entropy strength
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
DOM.bip44coin = $("#bip44 .coin");
|
||||
DOM.bip44account = $("#bip44 .account");
|
||||
DOM.bip44change = $("#bip44 .change");
|
||||
DOM.strength = $(".strength");
|
||||
DOM.generatedStrength = $(".generate-container .strength");
|
||||
DOM.hardenedAddresses = $(".hardened-addresses");
|
||||
DOM.addresses = $(".addresses");
|
||||
DOM.rowsToAdd = $(".rows-to-add");
|
||||
@@ -286,7 +286,7 @@
|
||||
showValidationError(errorText);
|
||||
return;
|
||||
}
|
||||
var numWords = parseInt(DOM.strength.val());
|
||||
var numWords = parseInt(DOM.generatedStrength.val());
|
||||
var strength = numWords / 3 * 32;
|
||||
var words = mnemonic.generate(strength);
|
||||
DOM.phrase.val(words);
|
||||
|
||||
Reference in New Issue
Block a user