Skip to content

Commit

Permalink
fix: headless改为true
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed May 2, 2024
1 parent b9fa86a commit 77bee42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 77bee42

Please sign in to comment.