Skip to content

Commit

Permalink
add --no-sandbox arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Mar 4, 2024
1 parent 41ac295 commit e4ec74a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/details/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const ref = {
export const getBrowser = async () => {
if (ref.browser) return ref.browser;

ref.browser = await puppeteer.launch({ headless: "new", executablePath: "/usr/bin/google-chrome" });
ref.browser = await puppeteer.launch({
headless: "new",
executablePath: "/usr/bin/google-chrome",
args: ["--no-sandbox", "--disable-setuid-sandbox"],
});
return ref.browser;
};

Expand Down

0 comments on commit e4ec74a

Please sign in to comment.