修复无头
This commit is contained in:
parent
a01152fc8a
commit
2071562374
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user