mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: use binding.ipc instead of binding.sendTo which is undefined (#19106)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user