From b1c6d8c153e1cba2fede3aeeca4d61940fb72ef2 Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Sun, 13 Oct 2019 03:04:28 +0530 Subject: [PATCH] fixing broadcastTx not been asynchronized call --- index.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 84c76e6..251d501 100644 --- a/index.html +++ b/index.html @@ -5070,8 +5070,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 () { @@ -5082,7 +5081,6 @@ reject(request.responseText); } request.send(params); - return result; } }) }, @@ -5837,4 +5835,4 @@ } - \ No newline at end of file +