()
| 320 | * Get Windows registry keys for all supported browsers |
| 321 | */ |
| 322 | export function getAllWindowsRegistryKeys(): { |
| 323 | browser: ChromiumBrowser |
| 324 | key: string |
| 325 | }[] { |
| 326 | const keys: { browser: ChromiumBrowser; key: string }[] = [] |
| 327 | |
| 328 | for (const browserId of BROWSER_DETECTION_ORDER) { |
| 329 | const config = CHROMIUM_BROWSERS[browserId] |
| 330 | if (config.windows.registryKey) { |
| 331 | keys.push({ |
| 332 | browser: browserId, |
| 333 | key: config.windows.registryKey, |
| 334 | }) |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | return keys |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * Detect which browser to use for opening URLs |
no test coverage detected