Skip to content

Commit

Permalink
Add specific html selector to test
Browse files Browse the repository at this point in the history
  • Loading branch information
bumi committed Sep 11, 2024
1 parent 2a427e6 commit 6f08e54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ <h1>NWC Invoice Generator</h1>
const resultElement = document.getElementById('result');
resultElement.innerHTML =
'<h2>Invoice:</h2>' +
'<pre><code>' + JSON.stringify(invoice, null, 2) + '</code></pre>' +
'<pre><code id="invoice">' + JSON.stringify(invoice, null, 2) + '</code></pre>' +
'<h2>Info:</h2>' +
'<pre><code>' + JSON.stringify(info, null, 2) + '</code></pre>' +
'<pre><code id="info">' + JSON.stringify(info, null, 2) + '</code></pre>' +
'<h2>Latest Transactions:</h2>' +
'<pre><code>' + JSON.stringify(transactions, null, 2) + '</code></pre>';
'<pre><code id="transactions">' + JSON.stringify(transactions, null, 2) + '</code></pre>';
} catch (error) {
document.getElementById('result').innerHTML = 'Error: ' + error.message;
}
Expand Down

0 comments on commit 6f08e54

Please sign in to comment.