Skip to content

Commit

Permalink
fix: Fix to work --browser option
Browse files Browse the repository at this point in the history
fix #546
  • Loading branch information
spring-raining committed Nov 25, 2024
1 parent b258c73 commit 0d68f0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export function checkBrowserAvailability(path: string): boolean {
}

export function isPlaywrightExecutable(path: string): boolean {
return registry
.executables()
.some((exe) => pathEquals(exe.executablePath() ?? '', path));
return [playwright.chromium, playwright.firefox, playwright.webkit].some(
(exe) => pathEquals(exe.executablePath() ?? '', path),
);
}

export async function downloadBrowser(
Expand Down

0 comments on commit 0d68f0e

Please sign in to comment.