mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-24 13:45:49 +00:00
Move Build a Desktop Wallet code samples
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const ledgerIndexEl = document.getElementById('ledger-index')
|
||||
|
||||
// Step 2 code additions - start
|
||||
const ledgerHashEl = document.getElementById('ledger-hash')
|
||||
const ledgerCloseTimeEl = document.getElementById('ledger-close-time')
|
||||
// Step 2 code additions - end
|
||||
|
||||
window.electronAPI.onUpdateLedgerData((_event, value) => {
|
||||
ledgerIndexEl.innerText = value.ledger_index
|
||||
|
||||
// Step 2 code additions - start
|
||||
ledgerHashEl.innerText = value.ledger_hash
|
||||
ledgerCloseTimeEl.innerText = value.ledger_time
|
||||
// Step 2 code additions - end
|
||||
})
|
||||
Reference in New Issue
Block a user