This commit is contained in:
pplokijuhyg 2020-01-04 00:03:13 +08:00
parent fcac6d0b02
commit 7a673b274d
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,8 @@ let mainurl = "http://www.pufei.net/"
let gethtml = (name) => { let gethtml = (name) => {
return new Promise(async (res, rej) => { return new Promise(async (res, rej) => {
puppeteer.launch({ puppeteer.launch({
headless: true headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
}).then(async (browser) => { }).then(async (browser) => {
const page = await browser.newPage(); const page = await browser.newPage();

View File

@ -5,6 +5,7 @@ let gethtml = (name) => {
return new Promise(async (res, rej) => { return new Promise(async (res, rej) => {
puppeteer.launch({ puppeteer.launch({
headless: true, headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
}).then(async (browser) => { }).then(async (browser) => {
const page = await browser.newPage(); const page = await browser.newPage();