Make sandboxed ipcRenderer API compatible with non-sandboxed version
This commit is contained in:
parent
d78f3cae7b
commit
2b8203e383
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ const geval = eval
|
|||
require('../renderer/api/ipc-renderer-setup')(ipcRenderer, ipc)
|
||||
|
||||
ipc.onMessage = function (channel, args) {
|
||||
ipcRenderer.emit(channel, ...args)
|
||||
ipcRenderer.emit(channel, {sender: ipcRenderer}, ...args)
|
||||
}
|
||||
|
||||
ipc.onExit = function () {
|
||||
|
|
Loading…
Reference in a new issue