From add376510ac3eb8fca04abecbe1d9550c128fd2b Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Mon, 25 Jan 2021 07:39:16 +0200 Subject: [PATCH] ipc fix Signed-off-by: Jari Kolehmainen --- src/common/ipc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ipc.ts b/src/common/ipc.ts index 3baf185141..f13ea30b9f 100644 --- a/src/common/ipc.ts +++ b/src/common/ipc.ts @@ -35,7 +35,7 @@ export async function broadcastMessage(channel: string, ...args: any[]) { } else { subFrames = await getSubFrames(); } - const views = (webContents || remote.webContents)?.getAllWebContents(); + const views = (webContents || remote?.webContents)?.getAllWebContents(); if (!views) return;