Make sandboxed ipcRenderer API compatible with non-sandboxed version

This commit is contained in:
Thiago de Arruda 2017-02-27 10:23:32 -03:00
parent d78f3cae7b
commit 2b8203e383

View file

@ -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 () {