kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: add useful puppeteer launch args
rodzic
8a0043d343
commit
f1d769ce6b
|
@ -211,7 +211,18 @@ export async function getBrowser(
|
||||||
|
|
||||||
return puppeteer.launch({
|
return puppeteer.launch({
|
||||||
headless: false,
|
headless: false,
|
||||||
args: ['--no-sandbox', '--exclude-switches', 'enable-automation'],
|
// https://peter.sh/experiments/chromium-command-line-switches/
|
||||||
|
args: [
|
||||||
|
'--no-sandbox',
|
||||||
|
'--exclude-switches',
|
||||||
|
'enable-automation',
|
||||||
|
'--disable-infobars',
|
||||||
|
'--disable-dev-shm-usage',
|
||||||
|
'--disable-blink-features=AutomationControlled',
|
||||||
|
'--no-first-run',
|
||||||
|
'--no-service-autorun',
|
||||||
|
'--password-store=basic'
|
||||||
|
],
|
||||||
ignoreHTTPSErrors: true,
|
ignoreHTTPSErrors: true,
|
||||||
executablePath,
|
executablePath,
|
||||||
...launchOptions
|
...launchOptions
|
||||||
|
|
Ładowanie…
Reference in New Issue