From 77bee42accad682cc9ed4e680b1d529d7274d015 Mon Sep 17 00:00:00 2001 From: liuweiqing Date: Thu, 2 May 2024 14:05:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20headless=E6=94=B9=E4=B8=BAtrue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pteer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pteer.js b/pteer.js index 59a6c828..28529877 100644 --- a/pteer.js +++ b/pteer.js @@ -40,7 +40,7 @@ function delayClick(time) { async function launchBrowserForUser(username, password) { try { const browser = await puppeteer.launch({ - headless: false, + headless: true, args: ["--no-sandbox", "--disable-setuid-sandbox"], //linux需要 defaultViewport: { width: 1280,