fix: apply senderFrame details to ipcMain port event (#33756)
This commit is contained in:
parent
3d4d39d67b
commit
16f8d713ab
2 changed files with 5 additions and 0 deletions
|
@ -627,6 +627,7 @@ WebContents.prototype._init = function () {
|
|||
});
|
||||
|
||||
this.on('-ipc-ports' as any, function (event: Electron.IpcMainEvent, internal: boolean, channel: string, message: any, ports: any[]) {
|
||||
addSenderFrameToEvent(event);
|
||||
event.ports = ports.map(p => new MessagePortMain(p));
|
||||
ipcMain.emit(channel, event, message);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue