Commit 36a69507 authored by 姚广胤's avatar 姚广胤

增加no-sandbox

parent f006a8af
...@@ -7,7 +7,7 @@ const iPhone = devices['iPhone 6']; ...@@ -7,7 +7,7 @@ const iPhone = devices['iPhone 6'];
* 启用无头浏览器,根据列表里的页面地址去循环执行 * 启用无头浏览器,根据列表里的页面地址去循环执行
*/ */
const runBrowser = async (urls) => { const runBrowser = async (urls) => {
const browser = await puppeteer.launch(); const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
const requests = []; const requests = [];
for (const url of urls) { for (const url of urls) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment