Merge pull request #10829 from zombieleet/master

update docs to show usage of ipcRenderer.sendTo
This commit is contained in:
John Kleinschmidt 2017-10-18 09:33:57 -04:00 committed by GitHub
commit a65ab1d5a7

View file

@ -74,6 +74,14 @@ 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][, ...])`
* `windowId` Number
* `channel` String
* `...args` any[]
Sends a message to a window with `windowid` via `channel`
### `ipcRenderer.sendToHost(channel[, arg1][, arg2][, ...])` ### `ipcRenderer.sendToHost(channel[, arg1][, arg2][, ...])`
* `channel` String * `channel` String