skip if webContents is not defined

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and Sebastian Malton committed 2022-01-24 11:05:00 -05:00
1 parent fc241d1066
commit 492376070e
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ export async function broadcastMessage(channel: string, ...args: any[]): Promise
return requestMain(broadcastMainChannel, channel, ...args); return requestMain(broadcastMainChannel, channel, ...args);
} }
if (!ipcMain) { if (!webContents) {
return; return;
} }