From 3725abb540935b4b2d4cf7e31cf378e1577e0afa Mon Sep 17 00:00:00 2001 From: Chris Rico Date: Sun, 1 Jan 2017 17:38:48 -0600 Subject: When completing a mnemonic word, return immediately if one is found in the wordlist that starts with the given word --- src/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/js/index.js') diff --git a/src/js/index.js b/src/js/index.js index 13c6178..af09606 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -3,7 +3,7 @@ // 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; @@ -647,6 +647,8 @@ var closestWord = words[0]; for (var i=0; i