Skip to content

Commit

Permalink
fix: headless
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 4, 2024
1 parent c922667 commit 184461e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function delayClick(time) {

(async () => {
if (usernames.length !== passwords.length) {
console.log(usernames.length, usernames, passwords.length, passwords);
console.log("用户名和密码的数量不匹配!");
return;
}
Expand All @@ -31,7 +32,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 184461e

Please sign in to comment.