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

Function detectAvailableBrowsers

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

Source from the content-addressed store, hash-verified

236}
237
238export function detectAvailableBrowsers(): {type: BrowserType; path: string}[] {
239 const browsers: {type: BrowserType; path: string}[] = [];
240 const bravePath = detectBravePath();
241 if (bravePath) browsers.push({type: 'brave', path: bravePath});
242 const chromePath = detectChromePath();
243 if (chromePath) browsers.push({type: 'chrome', path: chromePath});
244 return browsers;
245}
246
247export function getBrowserExecutable(): {type: BrowserType; path?: string} {
248 const prefs = getPreferences();

Callers 1

runInteractiveFunction · 0.90

Calls 3

detectBravePathFunction · 0.85
detectChromePathFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected