Merge pull request #8027 from bowbowbow/patch-1
Fix missed parameter in example.
This commit is contained in:
commit
41d6207376
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ ipcMain.on('synchronous-message', (event, arg) => {
|
|||
const {ipcRenderer} = require('electron')
|
||||
console.log(ipc.sendSync('synchronous-message', 'ping')) // "pong" 출력
|
||||
|
||||
ipcRenderer.on('asynchronous-reply', (arg) => {
|
||||
ipcRenderer.on('asynchronous-reply', (event, arg) => {
|
||||
console.log(arg) // "pong" 출력
|
||||
})
|
||||
ipcRenderer.send('asynchronous-message', 'ping')
|
||||
|
|
Loading…
Add table
Reference in a new issue