1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

skip if webContents is not defined

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2022-01-04 18:56:27 +02:00 committed by Sebastian Malton
parent fc241d1066
commit 492376070e

View File

@ -34,7 +34,7 @@ export async function broadcastMessage(channel: string, ...args: any[]): Promise
return requestMain(broadcastMainChannel, channel, ...args);
}
if (!ipcMain) {
if (!webContents) {
return;
}