Skip to content

Commit

Permalink
fix: change chromium args
Browse files Browse the repository at this point in the history
  • Loading branch information
joaosouz4dev committed Sep 29, 2020
1 parent 3d04c20 commit 1a18c5d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/config/puppeteer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
*/
const puppeteerConfig = {
whatsappUrl: 'https://web.whatsapp.com',
chroniumArgs: [
'--log-level=3',
chromiumArgs: [
// `--app=${WAUrl}`,
'--log-level=3', // fatal only
//'--start-maximized',
'--no-default-browser-check',
'--disable-site-isolation-trials',
'--no-experiments',
Expand All @@ -71,6 +73,10 @@ const puppeteerConfig = {
'--no-sandbox',
// Extras
'--disable-webgl',
'--disable-infobars',
'--window-position=0,0',
'--ignore-certifcate-errors',
'--ignore-certifcate-errors-spki-list',
'--disable-threaded-animation',
'--disable-threaded-scrolling',
'--disable-in-process-stack-traces',
Expand All @@ -84,6 +90,7 @@ const puppeteerConfig = {
'--disable-accelerated-mjpeg-decode',
'--disable-app-list-dismiss-on-blur',
'--disable-accelerated-video-decode',
'--disable-dev-shm-usage',
],
};

Expand Down

0 comments on commit 1a18c5d

Please sign in to comment.