Browse Source

fix: send IPC_MESSAGES.RENDERER_RELEASE_CALLBACK as internal message (#26808)

Milan Burda 4 years ago
parent
commit
b111bba387
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/browser/remote/server.ts

+ 1 - 1
lib/browser/remote/server.ts

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