docs: possible change in tutorial/ipc (#33218)

The `counter` channel should be `update-counter` channel
This commit is contained in:
Lalit 2022-03-21 07:43:55 +05:30 committed by GitHub
parent 45e2f86fe0
commit e100402b13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -413,7 +413,7 @@ function createWindow () {
```
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
click: () => mainWindow.webContents.send('update-counter', -1)