MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / findFromSystem

Function findFromSystem

packages/cli/src/browser/manager.ts:252–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252function findFromSystem(): BrowserResult | undefined {
253 for (const p of SYSTEM_CHROME_PATHS) {
254 if (existsSync(p)) {
255 return { executablePath: p, source: "system" };
256 }
257 }
258
259 const fromWhich = whichBinary("google-chrome") ?? whichBinary("chromium");
260 if (fromWhich) {
261 return { executablePath: fromWhich, source: "system" };
262 }
263
264 return undefined;
265}
266
267// --- Public API -------------------------------------------------------------
268

Callers 2

findBrowserFunction · 0.70
ensureBrowserFunction · 0.70

Calls 1

whichBinaryFunction · 0.70

Tested by

no test coverage detected