Merge pull request #1 from zombieleet/zombieleet-patch-1

update docs to show usage of ipcRenderer.sendTo
This commit is contained in:
73mp74710n 2017-10-18 02:35:51 +01:00 committed by GitHub
commit 5b193bad4b

View file

@ -74,6 +74,14 @@ and replies by setting `event.returnValue`.
**Note:** Sending a synchronous message will block the whole renderer process,
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][, ...])`
* `channel` String