From 3725abb540935b4b2d4cf7e31cf378e1577e0afa Mon Sep 17 00:00:00 2001 From: Chris Rico Date: Sun, 1 Jan 2017 17:38:48 -0600 Subject: [PATCH] When completing a mnemonic word, return immediately if one is found in the wordlist that starts with the given word --- bip39-standalone.html | 4 +++- src/js/index.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bip39-standalone.html b/bip39-standalone.html index 2888d03..4a18657 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -18648,7 +18648,7 @@ window.Entropy = new (function() { // mnemonics is populated as required by getLanguage var mnemonics = { "english": new Mnemonic("english") }; var mnemonic = mnemonics["english"]; - var seed = null + var seed = null; var bip32RootKey = null; var bip32ExtendedKey = null; var network = bitcoin.networks.bitcoin; @@ -19292,6 +19292,8 @@ window.Entropy = new (function() { var closestWord = words[0]; for (var i=0; i