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

This commit is contained in:
Samuel Attard 2019-07-03 16:36:44 -07:00 committed by GitHub
parent e6108740c0
commit 5a1b661f42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)
}