3df6d337f3
* feat: add isMainFrame to events emitted via ipcRenderer.sendTo() * chore: rename isMainFrame to senderIsMainFrame
1,008 B
1,008 B
IpcRendererEvent Object extends Event
sender
IpcRenderer - TheIpcRenderer
instance that emitted the event originallysenderId
Integer - ThewebContents.id
that sent the message, you can callevent.sender.sendTo(event.senderId, ...)
to reply to the message, see ipcRenderer.sendTo for more information. This only applies to messages sent from a different renderer. Messages sent directly from the main process setevent.senderId
to0
.senderIsMainFrame
boolean (optional) - Whether the message sent via ipcRenderer.sendTo was sent by the main frame. This is relevant whennodeIntegrationInSubFrames
is enabled in the originatingwebContents
.ports
MessagePort[] - A list of MessagePorts that were transferred with this message