Fixed misleading section markers

This commit is contained in:
AlexanderBuzz
2023-08-07 13:34:38 +02:00
parent d087aa25e1
commit 5b00e681a0
2 changed files with 1 additions and 3 deletions

View File

@@ -14,11 +14,11 @@ function openAccountAddressDialog(){
accountAddressDialog.showModal()
}
// Step 3 - Section start - this remains as it is, the rest is new
const ledgerIndexEl = document.getElementById('ledger-index')
const ledgerHashEl = document.getElementById('ledger-hash')
const ledgerCloseTimeEl = document.getElementById('ledger-close-time')
// Step 3 - Section start - this remains as it is, the rest is new
window.electronAPI.onUpdateLedgerData((_event, ledger) => {
ledgerIndexEl.innerText = ledger.ledgerIndex
ledgerHashEl.innerText = ledger.ledgerHash

View File

@@ -1,4 +1,3 @@
// Step 4 code additions - start
document.addEventListener('DOMContentLoaded', openAccountAddressDialog);
function openAccountAddressDialog(){
@@ -14,7 +13,6 @@ function openAccountAddressDialog(){
accountAddressDialog.showModal()
}
// Step 4 code additions - end
const ledgerIndexEl = document.getElementById('ledger-index')
const ledgerHashEl = document.getElementById('ledger-hash')