Merge pull request #1 from zombieleet/zombieleet-patch-1
update docs to show usage of ipcRenderer.sendTo
This commit is contained in:
commit
5b193bad4b
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue