feat: add event.senderId property to IPCs sent via ipcRenderer.sendTo (#14395)
This commit is contained in:
parent
b89848d683
commit
c17a1b37ea
11 changed files with 90 additions and 31 deletions
|
@ -9,8 +9,8 @@ const ipcNative = process.atomBinding('ipc')
|
|||
// private/public APIs.
|
||||
v8Util.setHiddenValue(global, 'ipcNative', ipcNative)
|
||||
|
||||
ipcNative.onMessage = function (channel, args) {
|
||||
ipcRenderer.emit(channel, {sender: ipcRenderer}, ...args)
|
||||
ipcNative.onMessage = function (channel, args, senderId) {
|
||||
ipcRenderer.emit(channel, {sender: ipcRenderer, senderId}, ...args)
|
||||
}
|
||||
|
||||
ipcNative.onExit = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue