MCPcopy Create free account
hub / github.com/CopilotKit/OpenTag / getBrowser

Function getBrowser

app/render/browser.ts:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14let closing = false;
15
16export function getBrowser(): Promise<Browser> {
17 if (closing) {
18 return Promise.reject(new Error("renderer is shutting down"));
19 }
20 if (!browserPromise) {
21 browserPromise = chromium.launch({ args: ["--no-sandbox"] });
22 }
23 return browserPromise;
24}
25
26export async function closeBrowser(): Promise<void> {
27 if (!browserPromise) return;

Callers 2

renderDiagramFunction · 0.85
renderChartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected