Skip to content

Commit

Permalink
fix: Microsoft Edge not detected (Quarto 1.6.4) on macOS
Browse files Browse the repository at this point in the history
Fixes #10464
  • Loading branch information
mcanouil committed Aug 21, 2024
1 parent 39dc173 commit c36ccc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/puppeteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ async function findChrome(): Promise<string | undefined> {
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge",
];
return programs.find((p) => {
safeExistsSync(p);
});
return programs.find(safeExistsSync);
} else if (Deno.build.os === "windows") {
// Try the HKLM key
const programs = ["chrome.exe", "msedge.exe"];
Expand Down

0 comments on commit c36ccc5

Please sign in to comment.