Browse Source

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

Samuel Attard 5 years ago
parent
commit
5a1b661f42
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/renderer/ipc-renderer-internal.ts

+ 2 - 2
lib/renderer/ipc-renderer-internal.ts

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