aboutsummaryrefslogtreecommitdiff
path: root/bip39-standalone.html
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2014-09-25 10:39:06 +1000
committerIan Coleman <coleman.ian@gmail.com>2014-09-25 10:39:06 +1000
commit59780293832d7a27d34378d4e47e7995f7d154a0 (patch)
tree4ba534f3d53370816d3abec64e0d5b9f73905942 /bip39-standalone.html
parent04f789cdbdb8e50511efdf97c900f7f83662eedb (diff)
downloadBIP39-59780293832d7a27d34378d4e47e7995f7d154a0.tar.gz
BIP39-59780293832d7a27d34378d4e47e7995f7d154a0.tar.zst
BIP39-59780293832d7a27d34378d4e47e7995f7d154a0.zip
Revert "Update only happens when phrase is changed"
This reverts commit 04f789cdbdb8e50511efdf97c900f7f83662eedb.
Diffstat (limited to 'bip39-standalone.html')
-rw-r--r--bip39-standalone.html18
1 files changed, 1 insertions, 17 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index 9bc6e88..591cdce 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -22733,8 +22733,6 @@ WORDLISTS = {
22733 DOM.privateKeyToggle = $(".private-key-toggle"); 22733 DOM.privateKeyToggle = $(".private-key-toggle");
22734 22734
22735 var derivationPath = DOM.bip44path.val(); 22735 var derivationPath = DOM.bip44path.val();
22736 var currentPhrase = DOM.phrase.val();
22737 var currentPassphrase = DOM.passphrase.val();
22738 22736
22739 function init() { 22737 function init() {
22740 // Events 22738 // Events
@@ -22759,9 +22757,6 @@ WORDLISTS = {
22759 // Event handlers 22757 // Event handlers
22760 22758
22761 function delayedPhraseChanged() { 22759 function delayedPhraseChanged() {
22762 if (!hasChanged()) {
22763 return;
22764 }
22765 hideValidationError(); 22760 hideValidationError();
22766 showPending(); 22761 showPending();
22767 if (phraseChangeTimeoutEvent != null) { 22762 if (phraseChangeTimeoutEvent != null) {
@@ -22791,9 +22786,6 @@ WORDLISTS = {
22791 calcBip32Seed(phrase, passphrase, derivationPath); 22786 calcBip32Seed(phrase, passphrase, derivationPath);
22792 displayBip32Info(); 22787 displayBip32Info();
22793 hidePending(); 22788 hidePending();
22794 // Set current state so we only update as needed
22795 currentPhrase = phrase;
22796 currentPassphrase = passphrase;
22797 } 22789 }
22798 22790
22799 function generateClicked() { 22791 function generateClicked() {
@@ -22815,9 +22807,7 @@ WORDLISTS = {
22815 } 22807 }
22816 22808
22817 function derivationChanged() { 22809 function derivationChanged() {
22818 hideValidationError(); 22810 delayedPhraseChanged();
22819 showPending();
22820 setTimeout(phraseChanged, 50);
22821 } 22811 }
22822 22812
22823 function bip32Changed() { 22813 function bip32Changed() {
@@ -23046,12 +23036,6 @@ WORDLISTS = {
23046 .hide(); 23036 .hide();
23047 } 23037 }
23048 23038
23049 function hasChanged() {
23050 var phraseChanged = DOM.phrase.val() != currentPhrase;
23051 var passphraseChanged = DOM.passphrase.val() != currentPassphrase;
23052 return phraseChanged || passphraseChanged;
23053 }
23054
23055 init(); 23039 init();
23056 23040
23057})(); 23041})();