docs: possible change in tutorial/ipc (#33218)
The `counter` channel should be `update-counter` channel
This commit is contained in:
parent
45e2f86fe0
commit
e100402b13
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ function createWindow () {
|
||||||
```
|
```
|
||||||
|
|
||||||
For the purposes of the tutorial, it's important to note that the `click` handler
|
For the purposes of the tutorial, it's important to note that the `click` handler
|
||||||
sends a message (either `1` or `-1`) to the renderer process through the `counter` channel.
|
sends a message (either `1` or `-1`) to the renderer process through the `update-counter` channel.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
click: () => mainWindow.webContents.send('update-counter', -1)
|
click: () => mainWindow.webContents.send('update-counter', -1)
|
||||||
|
|
Loading…
Reference in a new issue