Spaces:
Paused
Paused
Update src/index.ts
Browse files- src/index.ts +3 -11
src/index.ts
CHANGED
|
@@ -19,17 +19,9 @@ async function initBrowser() {
|
|
| 19 |
browser = await chromium.launch({
|
| 20 |
headless: true,
|
| 21 |
args: [
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
'--disable-blink-features=AutomationControlled',
|
| 26 |
-
'--disable-features=IsolateOrigins,site-per-process',
|
| 27 |
-
'--disable-web-security',
|
| 28 |
-
'--disable-site-isolation-trials',
|
| 29 |
-
'--ignore-certificate-errors',
|
| 30 |
-
'--window-size=1920,1080',
|
| 31 |
-
'--start-maximized',
|
| 32 |
-
'--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36'
|
| 33 |
],
|
| 34 |
executablePath: process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH, // 使用系统 Chromium
|
| 35 |
})
|
|
|
|
| 19 |
browser = await chromium.launch({
|
| 20 |
headless: true,
|
| 21 |
args: [
|
| 22 |
+
'--no-sandbox',
|
| 23 |
+
'--disable-setuid-sandbox',
|
| 24 |
+
'--disable-dev-shm-usage',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
],
|
| 26 |
executablePath: process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH, // 使用系统 Chromium
|
| 27 |
})
|