Skip to content

Commit

Permalink
Run puppeteer with no-sandbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruebot committed Dec 20, 2022
1 parent b72a0aa commit 79548a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anon.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ async function takeScreenshot(url) {
const filename = Date.now() + '.png'

const browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox'],
headless: true,
defaultViewport: {
width: 1024,
height: 768,
Expand Down

0 comments on commit 79548a9

Please sign in to comment.