Skip to content

Commit

Permalink
chrome opts
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddybi committed Feb 5, 2024
1 parent ca998f4 commit c81a4ea
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/config/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,18 @@ export const getBrowser = async () => {

browser = await puppeteer.launch({
headless: false,
args: ["--no-sandbox", "--disable-setuid-sandbox"],
args: [
'--disable-extensions',
'--disable-gpu',
'--disable-dev-shm-usage',
'--no-sandbox',
// '--single-process',
'--disable-background-timers-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-renderer-backgrounding',
'--disable-web-security',
'--mute-audio',
"--disable-setuid-sandbox"],
userDataDir,
executablePath: browserPath,
});
Expand Down

0 comments on commit c81a4ea

Please sign in to comment.