Merge pull request #622 from omnivore-app/fix/puppeteer-headless

Remove single-process from chromium args
This commit is contained in:
Hongbo Wu 2022-05-14 10:49:47 +08:00 committed by GitHub
commit 78b8e9fabc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,11 +72,10 @@ const getBrowserPromise = (async () => {
'--no-zygote',
'--use-gl=swiftshader',
'--window-size=1920,1080', // https://source.chromium.org/search?q=lang:cpp+symbol:kWindowSize&ss=chromium
process.env.LAUNCH_HEADLESS ? '--single-process' : '--start-maximized',
],
defaultViewport: { height: 1080, width: 1920 },
executablePath: process.env.CHROMIUM_PATH ,
headless: !!process.env.LAUNCH_HEADLESS,
headless: true,
timeout: 0,
userDataDir: '/tmp/puppeteer',
});