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

cleanup ipc

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-01-28 07:53:19 +02:00
parent 4129ae9338
commit d209914d1c

View File

@ -26,13 +26,9 @@ export async function broadcastMessage(channel: string, ...args: any[]) {
if (!views) return;
let subFrames: Promise<ClusterFrameInfo[]>;
if (ipcRenderer) {
subFrames = requestMain(subFramesChannel);
} else {
subFrames = getSubFrames();
}
const subFrames: Promise<ClusterFrameInfo[]> = ipcRenderer
? requestMain(subFramesChannel)
: getSubFrames();
views.forEach(async webContent => {
const type = webContent.getType();