I modified missed parameter in example.

Below example (in line 43 ~ 45) not working like comment. Because `ipcRenderer` callback function have two parameters (event, arg).

```javascript
ipcRenderer.on('asynchronous-reply', (arg) => {
  console.log(arg) // "pong" 출력
})
```
This commit is contained in:
bowbowbow 2016-11-20 21:30:50 +09:00 committed by GitHub
parent d6e3360aef
commit 8918770892

View file

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