MCPcopy
hub / github.com/RedPlanetHQ/core / detectChromePath

Function detectChromePath

packages/cli/src/utils/browser-config.ts:229–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227}
228
229export function detectChromePath(): string | null {
230 const platform = process.platform as 'darwin' | 'linux' | 'win32';
231 const paths = CHROME_PATHS[platform] || [];
232 for (const p of paths) {
233 if (fs.existsSync(p)) return p;
234 }
235 return null;
236}
237
238export function detectAvailableBrowsers(): {type: BrowserType; path: string}[] {
239 const browsers: {type: BrowserType; path: string}[] = [];

Callers 3

runSetBrowserFunction · 0.90
detectAvailableBrowsersFunction · 0.85
setBrowserExecutableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected