()
| 236 | } |
| 237 | |
| 238 | export 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 | |
| 247 | export function getBrowserExecutable(): {type: BrowserType; path?: string} { |
| 248 | const prefs = getPreferences(); |
no test coverage detected