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:
parent
4129ae9338
commit
d209914d1c
@ -26,13 +26,9 @@ export async function broadcastMessage(channel: string, ...args: any[]) {
|
|||||||
|
|
||||||
if (!views) return;
|
if (!views) return;
|
||||||
|
|
||||||
let subFrames: Promise<ClusterFrameInfo[]>;
|
const subFrames: Promise<ClusterFrameInfo[]> = ipcRenderer
|
||||||
|
? requestMain(subFramesChannel)
|
||||||
if (ipcRenderer) {
|
: getSubFrames();
|
||||||
subFrames = requestMain(subFramesChannel);
|
|
||||||
} else {
|
|
||||||
subFrames = getSubFrames();
|
|
||||||
}
|
|
||||||
|
|
||||||
views.forEach(async webContent => {
|
views.forEach(async webContent => {
|
||||||
const type = webContent.getType();
|
const type = webContent.getType();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user