Skip to content

Commit

Permalink
fix: send IPC_MESSAGES.RENDERER_RELEASE_CALLBACK as internal message (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed Dec 4, 2020
1 parent b133b6f commit b111bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/remote/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const finalizationRegistry = new FinalizationRegistry((fi: FinalizerInfo) => {
const ref = rendererFunctionCache.get(mapKey);
if (ref !== undefined && ref.deref() === undefined) {
rendererFunctionCache.delete(mapKey);
if (!fi.webContents.isDestroyed()) { fi.webContents.sendToFrame(fi.frameId, IPC_MESSAGES.RENDERER_RELEASE_CALLBACK, fi.id[0], fi.id[1]); }
if (!fi.webContents.isDestroyed()) { fi.webContents._sendToFrameInternal(fi.frameId, IPC_MESSAGES.RENDERER_RELEASE_CALLBACK, fi.id[0], fi.id[1]); }
}
});

Expand Down

0 comments on commit b111bba

Please sign in to comment.