Skip to content

Commit d071dae

Browse files
authored
Update to puppeteer 24 (#24)
1 parent e3d0388 commit d071dae

File tree

4 files changed

+319
-243
lines changed

4 files changed

+319
-243
lines changed

node/export.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ function sleep(time) {
1111
}
1212

1313
export async function pdf(url, pdf_path, options, screenshot_dir, screenshot_options, { beforeClose = async () => {} } = {}) {
14-
const browser = await p.launch()
14+
const browser = await p.launch({
15+
args: ["--no-sandbox"],
16+
})
1517
console.log("Initiated headless browser")
1618
const page = await browser.newPage()
1719
// await page.emulateMediaType('screen');

0 commit comments

Comments
 (0)