mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-22 18:32:16 +00:00
Refactor clearKey to better named clearKeys
This commit is contained in:
@@ -625,7 +625,7 @@
|
|||||||
|
|
||||||
function clearDisplay() {
|
function clearDisplay() {
|
||||||
clearAddressesList();
|
clearAddressesList();
|
||||||
clearKey();
|
clearKeys();
|
||||||
hideValidationError();
|
hideValidationError();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -641,10 +641,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearKey() {
|
function clearKeys() {
|
||||||
|
clearRootKey();
|
||||||
|
clearDerivedKeys();
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearRootKey() {
|
||||||
DOM.rootKey.val("");
|
DOM.rootKey.val("");
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearDerivedKeys() {
|
||||||
DOM.extendedPrivKey.val("");
|
DOM.extendedPrivKey.val("");
|
||||||
DOM.extendedPubKey.val("");
|
DOM.extendedPubKey.val("");
|
||||||
|
DOM.bip44accountXprv.val("");
|
||||||
|
DOM.bip44accountXpub.val("");
|
||||||
}
|
}
|
||||||
|
|
||||||
function addAddressToList(indexText, address, pubkey, privkey) {
|
function addAddressToList(indexText, address, pubkey, privkey) {
|
||||||
|
|||||||
Reference in New Issue
Block a user