mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
docs: possible change in tutorial/ipc (#33218)
The `counter` channel should be `update-counter` channel
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user