Update HTML template for the WS API examples

This commit is contained in:
Felipe Knorr Kuhn 2021-10-24 22:47:50 -07:00
parent e2c4e42c81
commit 85c4574cbd
No known key found for this signature in database
GPG Key ID: 79619B52BB097C1A

View File

@ -174,10 +174,10 @@ init();`;
let resultHtml = '<pre id="result"></pre>';
if (this.method === 'websocket') {
resultHtml = `<pre id="result-blocks"></pre>
<pre id="result-mempool-info"></pre>
<pre id="result-transactions"></pre>
<pre id="result-mempool-blocks"></pre>`;
resultHtml = `<h2>Blocks</h2><pre id="result-blocks">Waiting for data</pre><br>
<h2>Mempool Info</h2><pre id="result-mempool-info">Waiting for data</pre><br>
<h2>Transactions</h2><pre id="result-transactions">Waiting for data</pre><br>
<h2>Mempool Blocks</h2><pre id="result-mempool-blocks">Waiting for data</pre><br>`;
}
return `<!DOCTYPE html>