From 5a39ded0ca6afc3790d891d70928cc7a863c5e01 Mon Sep 17 00:00:00 2001 From: liuweiqing Date: Tue, 9 Jul 2024 10:21:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Windows=E6=9C=89=E5=A4=B4=EF=BC=8CLinux?= =?UTF-8?q?=E6=97=A0=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bypasscf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bypasscf.js b/bypasscf.js index 7975527f..416d8729 100644 --- a/bypasscf.js +++ b/bypasscf.js @@ -60,7 +60,7 @@ async function launchBrowserForUser(username, password) { try { var { connect } = await import("puppeteer-real-browser"); const { page, browser } = await connect({ - headless: process.env.ENVIRONMENT !== "dev", // 当ENVIRONMENT不是'dev'时启用无头模式 + headless: auto, // 当ENVIRONMENT不是'dev'时启用无头模式 args: ["--no-sandbox", "--disable-setuid-sandbox"], //linux需要 defaultViewport: { width: 1280,