* feat: add isMainFrame to events emitted via ipcRenderer.sendTo() * chore: rename isMainFrame to senderIsMainFrame
1,008 B
1,008 B
IpcRendererEvent Object extends Event
senderIpcRenderer - TheIpcRendererinstance that emitted the event originallysenderIdInteger - ThewebContents.idthat 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.senderIdto0.senderIsMainFrameboolean (optional) - Whether the message sent via ipcRenderer.sendTo was sent by the main frame. This is relevant whennodeIntegrationInSubFramesis enabled in the originatingwebContents.portsMessagePort[] - A list of MessagePorts that were transferred with this message