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:
parent
fc241d1066
commit
492376070e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user