From 5a1b661f420d5fcd15daaabf2f6a3cdd76ec9927 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 3 Jul 2019 16:36:44 -0700 Subject: [PATCH] fix: use bidning.ipc instead of binding.sendTo which is undefined (#19103) --- lib/renderer/ipc-renderer-internal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/renderer/ipc-renderer-internal.ts b/lib/renderer/ipc-renderer-internal.ts index 7d4884c226b..4e0c55b9b14 100644 --- a/lib/renderer/ipc-renderer-internal.ts +++ b/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) }