Skip to content

Commit

Permalink
fix: windows pup exec chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
GiandonatoGreco committed Nov 13, 2024
1 parent 154cb72 commit dbaafba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ const getChromePath = () => {

chromeFilePath = getPathDirectoryInDirectory(chromeFilePath);
chromeFilePath = getPathDirectoryInDirectory(chromeFilePath);
return path.join(chromeFilePath, "chrome-headless-shell");
chromeFilePath = path.join(chromeFilePath, "chrome-headless-shell");

if (process.platform === "win32") {
chromeFilePath += ".exe";
}

return chromeFilePath;
}
};

Expand Down

0 comments on commit dbaafba

Please sign in to comment.