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

Function getWaveTabViewByWebContentsId

emain/emain-tabview.ts:111–116  ·  view source on GitHub ↗
(webContentsId: number)

Source from the content-addressed store, hash-verified

109const wcIdToWaveTabMap = new Map<number, WaveTabView>();
110
111export function getWaveTabViewByWebContentsId(webContentsId: number): WaveTabView {
112 if (webContentsId == null) {
113 return null;
114 }
115 return wcIdToWaveTabMap.get(webContentsId);
116}
117
118export class WaveTabView extends WebContentsView {
119 waveWindowId: string; // this will be set for any tabviews that are initialized. (unset for the hot spare)

Callers 3

emain-window.tsFile · 0.90
initIpcHandlersFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected