fix: use binding.ipc instead of binding.sendTo which is undefined (#19106)

This commit is contained in:
trop[bot]
2019-07-10 10:35:55 -05:00
committed by Shelley Vohr
parent 41a7d9e42b
commit 733251866c

View File

@@ -14,9 +14,9 @@ ipcRendererInternal.sendSync = function (channel, ...args) {
}
ipcRendererInternal.sendTo = function (webContentsId, channel, ...args) {
return binding.sendTo(internal, false, webContentsId, channel, args)
return binding.ipc.sendTo(internal, false, webContentsId, channel, args)
}
ipcRendererInternal.sendToAll = function (webContentsId, channel, ...args) {
return binding.sendTo(internal, true, webContentsId, channel, args)
return binding.ipc.sendTo(internal, true, webContentsId, channel, args)
}