From 75cb0ba8f775a2fb17aa947feb5246f88d8c9fc2 Mon Sep 17 00:00:00 2001 From: Ashen Gunaratne Date: Sat, 6 Jan 2024 10:31:10 +0000 Subject: [PATCH] Force use new Chrome headless mode --- scripts/pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pdf.js b/scripts/pdf.js index cb163c7..e65527d 100755 --- a/scripts/pdf.js +++ b/scripts/pdf.js @@ -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);