mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
fix: fiddle ipc code pattern 3 (#33262)
This commit is contained in:
@@ -4,5 +4,5 @@ window.electronAPI.handleCounter((event, value) => {
|
||||
const oldValue = Number(counter.innerText)
|
||||
const newValue = oldValue + value
|
||||
counter.innerText = newValue
|
||||
event.reply('counter-value', newValue)
|
||||
event.sender.send('counter-value', newValue)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user