X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=src%2Fjs%2Findex.js;h=763967ca45bfb73a47eb7942d87bda6890091eda;hp=84c773f86dd7b7352e76ea749dbae1841873b9c7;hb=fa2e4e936eea702d9e3ea56b256bbd886ca26bdf;hpb=684624b522025062e0426b0c2dd77281d4108f6f diff --git a/src/js/index.js b/src/js/index.js index 84c773f..763967c 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -625,7 +625,7 @@ function clearDisplay() { clearAddressesList(); - clearKey(); + clearKeys(); hideValidationError(); } @@ -641,10 +641,20 @@ } } - function clearKey() { + function clearKeys() { + clearRootKey(); + clearDerivedKeys(); + } + + function clearRootKey() { DOM.rootKey.val(""); + } + + function clearDerivedKeys() { DOM.extendedPrivKey.val(""); DOM.extendedPubKey.val(""); + DOM.bip44accountXprv.val(""); + DOM.bip44accountXpub.val(""); } function addAddressToList(indexText, address, pubkey, privkey) {