diff --git a/index.html b/index.html
index 756aea2..767136c 100644
--- a/index.html
+++ b/index.html
@@ -6031,7 +6031,7 @@
return new Promise(resolve => setTimeout(resolve, ms));
}
- async function onLoadStartUp() {
+ function onLoadStartUp() {
myPrivKey = prompt("Enter Private Key : ")
myPubKey = floCrypto.getPubKeyHex(myPrivKey)
myFloID = floCrypto.getFloIDfromPubkeyHex(myPubKey)
@@ -6049,10 +6049,11 @@
setInterval(refreshBlockchainData, 3600000);
floSupernode.initSupernode(serverPwd, myFloID).then(result => {
console.log(result)
- await sleep(5000)
- connectToAllBackupSupernode().then(result => {
- console.log(result)
- reactor.dispatchEvent("indicate_supernode_up",myFloID)
+ sleep(5000).then( _ => {
+ connectToAllBackupSupernode().then(result => {
+ console.log(result)
+ reactor.dispatchEvent("indicate_supernode_up",myFloID)
+ })
})
})
})