MCPcopy
hub / github.com/wavetermdev/waveterm / getWaveWindowByWebContentsId

Function getWaveWindowByWebContentsId

emain/emain-window.ts:659–668  ·  view source on GitHub ↗
(webContentsId: number)

Source from the content-addressed store, hash-verified

657}
658
659export function getWaveWindowByWebContentsId(webContentsId: number): WaveBrowserWindow {
660 if (webContentsId == null) {
661 return null;
662 }
663 const tabView = getWaveTabViewByWebContentsId(webContentsId);
664 if (tabView == null) {
665 return null;
666 }
667 return getWaveWindowByTabId(tabView.waveTabId);
668}
669
670export function getWaveWindowById(windowId: string): WaveBrowserWindow {
671 return waveWindowMap.get(windowId);

Callers 2

initIpcHandlersFunction · 0.90
emain-window.tsFile · 0.85

Calls 2

getWaveWindowByTabIdFunction · 0.85

Tested by

no test coverage detected