From 3f52164645993cd6abeeb276ddefee428d1bf836 Mon Sep 17 00:00:00 2001 From: Salman Dabbakuti Date: Fri, 9 Aug 2019 23:39:31 +0530 Subject: [PATCH] Update index.js --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 184b849..304691f 100644 --- a/index.js +++ b/index.js @@ -1,11 +1,11 @@ - function log(message) { - $('#log').append($('

').text(message)); - $('#log').scrollTop($('#log').prop('scrollHeight')); - } + function log(message) { + document.getElementById("log").innerHTML=message; + console.log(message); + } function error(message) { $('#log').append($('

').addClass('dark-red').text(message)); $('#log').scrollTop($('#log').prop('scrollHeight')); - } + } function waitForReceipt(hash, cb) { web3.eth.getTransactionReceipt(hash, function (err, receipt) { if (err) {