mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-05 04:15:50 +00:00
8 lines
299 B
JavaScript
8 lines
299 B
JavaScript
const ledgerIndexEl = document.getElementById('ledger-index')
|
|
|
|
// Here we define the callback function that performs the content update
|
|
// whenever 'update-ledger-index' is called by the main process
|
|
window.electronAPI.onUpdateLedgerIndex((_event, value) => {
|
|
ledgerIndexEl.innerText = value
|
|
})
|