Skip to content

Commit 8a6e958

Browse files
committed
Run Puppeteer without sandbox
1 parent 901740c commit 8a6e958

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/wcag.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export class WcagPlugin extends Plugin {
3232
*/
3333
static async fetchHtml(url) {
3434
console.log(`Fetching rendered HTML for: ${url}`);
35-
const browser = await puppeteer.launch({ headless: true });
35+
const browser = await puppeteer.launch({
36+
headless: true,
37+
args: ['--no-sandbox', '--disable-setuid-sandbox']
38+
});
3639
const page = await browser.newPage();
3740

3841
try {

0 commit comments

Comments
 (0)