This commit is contained in:
thororen1234 2024-08-15 01:03:20 -04:00
parent 47f7411124
commit d69a1b3f70

View file

@ -185,11 +185,7 @@ async function reporterRuntime(token: string) {
try { try {
const browser = await pup.launch({ const browser = await pup.launch({
headless: true, headless: true,
executablePath: process.env.CHROMIUM_BIN, executablePath: process.env.CHROMIUM_BIN
args: [
'--disable-dev-shm-usage',
'--shm-size=4gb'
]
}); });
const page = await browser.newPage(); const page = await browser.newPage();
await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"); await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36");