Skip to content

Commit

Permalink
fix: close headless in puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
hidaviddong committed Jul 19, 2024
1 parent 6a2439a commit 651710c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/puppeteer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { config } from "https://deno.land/x/dotenv/mod.ts";
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
const browser = await puppeteer.launch({
headless: false, // 设置为false以便观察浏览器动作,调试时很有用
headless: true, // 设置为false以便观察浏览器动作,调试时很有用
args: ['--disable-web-security']
});

Expand Down

0 comments on commit 651710c

Please sign in to comment.