]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
Hive Wallet added as an option for derivation path
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / index.js
index bad4cfb12a11e53487aa1f99fcf8e3f65c2cdd83..bc1682e99c38ac7dd5e909e3a5f32889fcdc9148 100644 (file)
@@ -15,8 +15,6 @@
     var DOM = {};
     DOM.network = $(".network");
     DOM.phraseNetwork = $("#network-phrase");
-    DOM.bip44Network = $("#network-bip44");
-    DOM.addressNetwork = $("#network-address-type");
     DOM.phrase = $(".phrase");
     DOM.passphrase = $(".passphrase");
     DOM.generate = $(".generate");
@@ -43,7 +41,7 @@
     DOM.addressToggle = $(".address-toggle");
     DOM.privateKeyToggle = $(".private-key-toggle");
 
-    var derivationPath = DOM.bip44path.val();
+    var derivationPath = $(".tab-pane.active .path").val();
 
     function init() {
         // Events
         }
         else if (n == "dogecoin") {
             network = Bitcoin.networks.dogecoin;
-            var NO_BIP44_VALUE = 9999;
-            DOM.bip44coin.val(NO_BIP44_VALUE); // This coin is not in BIP44
+            var UNOFFICIAL_BIP44_COIN = 9999;
+            DOM.bip44coin.val(UNOFFICIAL_BIP44_COIN); // This coin is not in BIP44
         }
         setBip44DerivationPath();
-        DOM.phraseNetwork.val(n);
-        DOM.bip44Network.val(n);
-        if(e.target != DOM.addressNetwork.dom){
-            DOM.addressNetwork.val(n);
-        }
         delayedPhraseChanged();
     }