Remove headless option from Chromium launch in init function

This commit is contained in:
Norbert Maciaszek
2025-11-15 20:10:16 +01:00
parent beb1cf7bdc
commit b62389085f

View File

@@ -109,7 +109,7 @@ async function init() {
} }
if (productsWithBrowser.length > 0) { if (productsWithBrowser.length > 0) {
const browser = await chromium.launch({ headless: false }); const browser = await chromium.launch();
const context = await browser.newContext({ const context = await browser.newContext({
userAgent: userAgent:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36",