fix: fiddle ipc code pattern 3 (#33262)

This commit is contained in:
Abhay Gupta
2022-03-16 08:01:29 -07:00
committed by GitHub
parent 02fe245521
commit b274011720
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
})