diff --git a/src/common/ipc/ipc.ts b/src/common/ipc/ipc.ts index 1b83c12826..1df105d831 100644 --- a/src/common/ipc/ipc.ts +++ b/src/common/ipc/ipc.ts @@ -34,7 +34,7 @@ export async function broadcastMessage(channel: string, ...args: any[]): Promise return requestMain(broadcastMainChannel, channel, ...args); } - if (!ipcMain) { + if (!webContents) { return; }