doc: correct ipcRenderer sendTo windowId param (#15418)
This commit is contained in:
parent
bdda248194
commit
a41e919b95
1 changed files with 3 additions and 3 deletions
|
@ -74,13 +74,13 @@ and replies by setting `event.returnValue`.
|
||||||
**Note:** Sending a synchronous message will block the whole renderer process,
|
**Note:** Sending a synchronous message will block the whole renderer process,
|
||||||
unless you know what you are doing you should never use it.
|
unless you know what you are doing you should never use it.
|
||||||
|
|
||||||
### `ipcRenderer.sendTo(windowId, channel, [, arg1][, arg2][, ...])`
|
### `ipcRenderer.sendTo(webContentsId, channel, [, arg1][, arg2][, ...])`
|
||||||
|
|
||||||
* `windowId` Number
|
* `webContentsId` Number
|
||||||
* `channel` String
|
* `channel` String
|
||||||
* `...args` any[]
|
* `...args` any[]
|
||||||
|
|
||||||
Sends a message to a window with `windowid` via `channel`.
|
Sends a message to a window with `webContentsId` via `channel`.
|
||||||
|
|
||||||
### `ipcRenderer.sendToHost(channel[, arg1][, arg2][, ...])`
|
### `ipcRenderer.sendToHost(channel[, arg1][, arg2][, ...])`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue