mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Update ipc-renderer.md
Removed duplication.
This commit is contained in:
@@ -37,11 +37,10 @@ send arbitrary arguments. The main process handles it by listening for the
|
||||
* `arg` (optional)
|
||||
|
||||
Send an event to the main process synchronously via a `channel`, you can also
|
||||
send arbitrary arguments. The main process handles it by listening for the
|
||||
`channel` event with `ipcMain`.
|
||||
send arbitrary arguments.
|
||||
|
||||
The main process handles it by listening for the `channel` event with `ipc` and
|
||||
replies by setting the `event.returnValue`.
|
||||
The main process handles it by listening for the `channel` event with
|
||||
`ipcMain` 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.
|
||||
|
||||
Reference in New Issue
Block a user