Skip to content

Commit

Permalink
fix: call ELECTRON_RENDERER_CALLBACK on non-internal channel
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jun 17, 2020
1 parent ea9ab26 commit 9e7d751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const unwrapArgs = function (sender: WebContents, frameId: number, contextId: st
const callIntoRenderer = function (this: any, ...args: any[]) {
let succeed = false
if (!sender.isDestroyed()) {
succeed = (sender as any)._sendToFrameInternal(frameId, 'ELECTRON_RENDERER_CALLBACK', contextId, meta.id, valueToMeta(sender, contextId, args))
succeed = sender.sendToFrame(frameId, 'ELECTRON_RENDERER_CALLBACK', contextId, meta.id, valueToMeta(sender, contextId, args)) as any as boolean;
}
if (!succeed) {
removeRemoteListenersAndLogWarning(this, callIntoRenderer)
Expand Down

0 comments on commit 9e7d751

Please sign in to comment.