diff --git a/app/web/app.js b/app/web/app.js index 8486940..a33fdd5 100644 --- a/app/web/app.js +++ b/app/web/app.js @@ -6,6 +6,14 @@ window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.ms if (!window.indexedDB) { window.alert("Your browser doesn't support a stable version of IndexedDB.") } + +const adminID = "FMabh7gTSyKPAb2Wi9sK5CBhV8nVFk783i"; + +if(blockchain == "FLO") + var api_url = `https://flosight.duckdns.org/`; +else if(blockchain == "FLO_TEST") + var api_url = `https://testnet-flosight.duckdns.org/`; + var supernodeKBucket; var superNodeList; var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; diff --git a/app/web/login.js b/app/web/login.js index 51eca72..3faf2eb 100644 --- a/app/web/login.js +++ b/app/web/login.js @@ -2,13 +2,6 @@ if( sessionStorage.profiles && sessionStorage.privKey && sessionStorage.selfID & window.location.replace("home.html"); } -const adminID = "FMabh7gTSyKPAb2Wi9sK5CBhV8nVFk783i"; - -if(blockchain == "FLO") - var api_url = `https://flosight.duckdns.org/`; -else if(blockchain == "FLO_TEST") - var api_url = `https://testnet-flosight.duckdns.org/`; - const sendAmt = 0.001 ; const fee = 0.0005; var username,privKey,floID; @@ -98,6 +91,7 @@ function signIn(){ function login(){ sessionStorage.privKey = JSON.stringify(encrypt.createShamirsSecretShares(privKey,10,10)); sessionStorage.selfID = floID; + disableForm('userSignIn',true); customAlert(`Welcome ${username}`,'info'); setTimeout(window.location.replace("home.html"), 3000); }