Skip to content

Commit

Permalink
Force use new Chrome headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ashenm committed Jan 6, 2024
1 parent 960b821 commit 1ddf354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (!argv.source || !argv.output) {
}

// generate pdf
puppeteer.launch({ args: [ '--no-sandbox' ] }).then(async browser => {
puppeteer.launch({ args: [ '--no-sandbox' ], headless: "new" }).then(async browser => {

const page = await browser.newPage();
const response = await page.goto(argv.source);
Expand Down

0 comments on commit 1ddf354

Please sign in to comment.