Honor configured browser engine

This commit is contained in:
2026-08-05 21:11:17 +02:00
parent 1f5ab5a8cc
commit 6a1568a1dd
2 changed files with 2 additions and 7 deletions
+1 -7
View File
@@ -58,13 +58,7 @@ function launchBrowser(engine, headless) {
...(executablePath ? { executablePath } : {}),
};
return browserType.launch(options).catch((error) => {
if (normalizedEngine !== "firefox") throw error;
const chromiumPath = resolveSystemBrowser("chromium");
if (!chromiumPath) throw error;
return chromium.launch({ headless, timeout: 10_000, executablePath: chromiumPath });
});
return browserType.launch(options);
}
function resolveSystemBrowser(engine) {