mirror of
https://github.com/YuzuZensai/NekoMelody.git
synced 2026-01-06 04:33:21 +00:00
🐛 fix: chromium flags
This commit is contained in:
@@ -158,18 +158,6 @@ async function updateHeaderAndCookies(id: string = "-VKIqrvVOpo") {
|
|||||||
try {
|
try {
|
||||||
const browser = await chromium.launch({
|
const browser = await chromium.launch({
|
||||||
headless: true,
|
headless: true,
|
||||||
args: [
|
|
||||||
"--disable-gpu",
|
|
||||||
"--disable-dev-shm-usage",
|
|
||||||
"--disable-setuid-sandbox",
|
|
||||||
"--no-first-run",
|
|
||||||
"--no-sandbox",
|
|
||||||
"--no-zygote",
|
|
||||||
"--deterministic-fetch",
|
|
||||||
"--disable-features=IsolateOrigins",
|
|
||||||
"--disable-site-isolation-trials",
|
|
||||||
"--single-process",
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|||||||
Reference in New Issue
Block a user