MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / getBuilderWindowById

Function getBuilderWindowById

emain/emain-builder.ts:23–25  ·  view source on GitHub ↗
(builderId: string)

Source from the content-addressed store, hash-verified

21export let focusedBuilderWindow: BuilderWindowType = null;
22
23export function getBuilderWindowById(builderId: string): BuilderWindowType {
24 return builderWindows.find((win) => win.builderId === builderId);
25}
26
27export function getBuilderWindowByWebContentsId(webContentsId: number): BuilderWindowType {
28 return builderWindows.find((win) => win.webContents.id === webContentsId);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected