aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2017-08-16 10:43:09 +1000
committerIan Coleman <coleman.ian@gmail.com>2017-08-16 10:43:09 +1000
commited6d9d3905aa581f1a76d37d601c6be39954d1ff (patch)
treeadb9b239acf04ff3011af37161e616ad1e25be5c /src
parent47b64d3ee12f475fc939b9fbfc3f7ae2578ea2e1 (diff)
downloadBIP39-ed6d9d3905aa581f1a76d37d601c6be39954d1ff.tar.gz
BIP39-ed6d9d3905aa581f1a76d37d601c6be39954d1ff.tar.zst
BIP39-ed6d9d3905aa581f1a76d37d601c6be39954d1ff.zip
Clear old seed when mnemonic is changed
Diffstat (limited to 'src')
-rw-r--r--src/js/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 1f37d38..2e14a40 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -175,6 +175,10 @@
175 175
176 function delayedPhraseChanged() { 176 function delayedPhraseChanged() {
177 hideValidationError(); 177 hideValidationError();
178 seed = null;
179 bip32RootKey = null;
180 bip32ExtendedKey = null;
181 clearAddressesList();
178 showPending(); 182 showPending();
179 if (phraseChangeTimeoutEvent != null) { 183 if (phraseChangeTimeoutEvent != null) {
180 clearTimeout(phraseChangeTimeoutEvent); 184 clearTimeout(phraseChangeTimeoutEvent);