()
| 250 | } |
| 251 | |
| 252 | function 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 |
no test coverage detected