mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-07 21:35:49 +00:00
Fixed misleading section markers
This commit is contained in:
@@ -14,11 +14,11 @@ function openAccountAddressDialog(){
|
|||||||
accountAddressDialog.showModal()
|
accountAddressDialog.showModal()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Step 3 - Section start - this remains as it is, the rest is new
|
||||||
const ledgerIndexEl = document.getElementById('ledger-index')
|
const ledgerIndexEl = document.getElementById('ledger-index')
|
||||||
const ledgerHashEl = document.getElementById('ledger-hash')
|
const ledgerHashEl = document.getElementById('ledger-hash')
|
||||||
const ledgerCloseTimeEl = document.getElementById('ledger-close-time')
|
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) => {
|
window.electronAPI.onUpdateLedgerData((_event, ledger) => {
|
||||||
ledgerIndexEl.innerText = ledger.ledgerIndex
|
ledgerIndexEl.innerText = ledger.ledgerIndex
|
||||||
ledgerHashEl.innerText = ledger.ledgerHash
|
ledgerHashEl.innerText = ledger.ledgerHash
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// Step 4 code additions - start
|
|
||||||
document.addEventListener('DOMContentLoaded', openAccountAddressDialog);
|
document.addEventListener('DOMContentLoaded', openAccountAddressDialog);
|
||||||
|
|
||||||
function openAccountAddressDialog(){
|
function openAccountAddressDialog(){
|
||||||
@@ -14,7 +13,6 @@ function openAccountAddressDialog(){
|
|||||||
|
|
||||||
accountAddressDialog.showModal()
|
accountAddressDialog.showModal()
|
||||||
}
|
}
|
||||||
// Step 4 code additions - end
|
|
||||||
|
|
||||||
const ledgerIndexEl = document.getElementById('ledger-index')
|
const ledgerIndexEl = document.getElementById('ledger-index')
|
||||||
const ledgerHashEl = document.getElementById('ledger-hash')
|
const ledgerHashEl = document.getElementById('ledger-hash')
|
||||||
|
|||||||
Reference in New Issue
Block a user