Skip to content

Commit 232604c

Browse files
committed
put the args back
1 parent dfbb553 commit 232604c

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

src/collector.ts

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -105,43 +105,45 @@ export const collect = async (inUrl: string, args: CollectorOptions) => {
105105
const userDataDir = args.saveBrowserProfile ? join(args.outDir, 'browser-profile') : undefined;
106106
let didBrowserDisconnect = false;
107107

108+
console.log(args.extraChromiumArgs);
109+
108110
const options = {
109111
...defaultPuppeteerBrowserOptions,
110-
// args: [...defaultPuppeteerBrowserOptions.args, ...args.extraChromiumArgs],
111-
args: [
112-
'--no-sandbox',
113-
'--disable-dev-shm-usage',
114-
'--ignore-certificate-errors',
115-
'--autoplay-policy=no-user-gesture-required',
116-
'--allow-running-insecure-content',
117-
'--autoplay-policy=user-gesture-required',
118-
'--disable-background-timer-throttling',
119-
'--disable-component-update',
120-
'--disable-domain-reliability',
121-
'--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process',
122-
'--disable-ipc-flooding-protection',
123-
'--disable-print-preview',
124-
'--disable-dev-shm-usage',
125-
'--disable-setuid-sandbox',
126-
'--disable-site-isolation-trials',
127-
'--disable-speech-api',
128-
'--disable-web-security',
129-
'--disk-cache-size=33554432',
130-
'--enable-features=SharedArrayBuffer',
131-
'--hide-scrollbars',
132-
'--ignore-gpu-blocklist',
133-
'--in-process-gpu',
134-
'--mute-audio',
135-
'--no-default-browser-check',
136-
'--no-first-run',
137-
'--no-pings',
138-
'--no-sandbox',
139-
'--no-zygote',
140-
'--use-gl=angle',
141-
'--use-angle=swiftshader',
142-
'--window-size=1920,1080',
143-
// '--single-process'
144-
],
112+
args: [...defaultPuppeteerBrowserOptions.args, ...args.extraChromiumArgs],
113+
// args: [
114+
// '--no-sandbox',
115+
// '--disable-dev-shm-usage',
116+
// '--ignore-certificate-errors',
117+
// '--autoplay-policy=no-user-gesture-required',
118+
// '--allow-running-insecure-content',
119+
// '--autoplay-policy=user-gesture-required',
120+
// '--disable-background-timer-throttling',
121+
// '--disable-component-update',
122+
// '--disable-domain-reliability',
123+
// '--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process',
124+
// '--disable-ipc-flooding-protection',
125+
// '--disable-print-preview',
126+
// '--disable-dev-shm-usage',
127+
// '--disable-setuid-sandbox',
128+
// '--disable-site-isolation-trials',
129+
// '--disable-speech-api',
130+
// '--disable-web-security',
131+
// '--disk-cache-size=33554432',
132+
// '--enable-features=SharedArrayBuffer',
133+
// '--hide-scrollbars',
134+
// '--ignore-gpu-blocklist',
135+
// '--in-process-gpu',
136+
// '--mute-audio',
137+
// '--no-default-browser-check',
138+
// '--no-first-run',
139+
// '--no-pings',
140+
// '--no-sandbox',
141+
// '--no-zygote',
142+
// '--use-gl=angle',
143+
// '--use-angle=swiftshader',
144+
// '--window-size=1920,1080',
145+
// // '--single-process'
146+
// ],
145147
headless: args.headless,
146148
userDataDir
147149
};

0 commit comments

Comments
 (0)