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;
|
||||
|
||||
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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user