Skip to content

Commit

Permalink
fix: use binding.ipc instead of binding.sendTo which is undefined (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Jul 10, 2019
1 parent 41a7d9e commit 7332518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/renderer/ipc-renderer-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 7332518

Please sign in to comment.