无头关闭

This commit is contained in:
theluyuan 2021-06-27 00:14:48 +08:00
parent 5137d188eb
commit 21533025ba

View File

@ -4,7 +4,7 @@ let mainurl = "http://www.pufei.cc"
let gethtml = (name) => { let gethtml = (name) => {
return new Promise(async (res, rej) => { return new Promise(async (res, rej) => {
puppeteer.launch({ puppeteer.launch({
headless: false, headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox','--blink-settings=imagesEnabled=false'] args: ['--no-sandbox', '--disable-setuid-sandbox','--blink-settings=imagesEnabled=false']
}).then(async (browser) => { }).then(async (browser) => {