Remove headless option from Chromium launch in init function
This commit is contained in:
2
index.js
2
index.js
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user