From 6373143908110817afaa2f6ee9237f1502c3b1ed Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Sun, 13 Oct 2019 03:07:40 +0530 Subject: [PATCH] fix : broadcastTx not been asynchronous --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.html b/index.html index d1e3ec5..e324d32 100644 --- a/index.html +++ b/index.html @@ -5078,8 +5078,7 @@ reject("Empty Signature"); else { var params = `{"rawtx":"${signedTxHash}"}`; - var result; - request.open('POST', url, false); + request.open('POST', url, true); //Send the proper header information along with the request request.setRequestHeader('Content-type', 'application/json'); request.onload = function () { @@ -5090,7 +5089,6 @@ reject(request.responseText); } request.send(params); - return result; } }) },