Prefer event.returnValue to event.result for sync messages.
This commit is contained in:
parent
50b5272354
commit
b225a59a15
3 changed files with 6 additions and 4 deletions
|
@ -30,7 +30,7 @@ An example of sending synchronous message from renderer to browser:
|
|||
// In browser:
|
||||
var ipc = require('ipc');
|
||||
ipc.on('browser-data-request', function(event, processId, routingId, message) {
|
||||
event.result = 'THIS SOME DATA FROM THE BROWSER';
|
||||
event.returnValue = 'THIS SOME DATA FROM THE BROWSER';
|
||||
});
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue