From 8c44ac02a95772e8ad34539100d199eb228b1a3c Mon Sep 17 00:00:00 2001 From: zfcsoftware Date: Sun, 25 Feb 2024 18:30:12 +0300 Subject: [PATCH] Page Bug Fixed --- package.json | 2 +- src/module/chromium.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a83253b..cd71452 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "puppeteer-real-browser", - "version": "1.2.1", + "version": "1.2.3", "description": "This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.", "type": "module", "exports": "./src/index.js", diff --git a/src/module/chromium.js b/src/module/chromium.js index 9faae25..525c559 100644 --- a/src/module/chromium.js +++ b/src/module/chromium.js @@ -47,7 +47,7 @@ export const startSession = ({ args = [], headless = 'auto', customConfig = {}, headless = slugify(process.platform).includes('linux') ? true : false } - const chromeFlags = ['--no-sandbox', , '--disable-setuid-sandbox','--disable-blink-features=AutomationControlled'].concat(args); + const chromeFlags = ['--no-sandbox','--disable-setuid-sandbox','--disable-blink-features=AutomationControlled'].concat(args); if (headless === true) { slugify(process.platform).includes('win') ? chromeFlags.push('--headless=new') : ''