Skip to content

Commit

Permalink
Update to puppeteer 24 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Jan 30, 2025
1 parent e3d0388 commit d071dae
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 243 deletions.
4 changes: 3 additions & 1 deletion node/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function sleep(time) {
}

export async function pdf(url, pdf_path, options, screenshot_dir, screenshot_options, { beforeClose = async () => {} } = {}) {
const browser = await p.launch()
const browser = await p.launch({
args: ["--no-sandbox"],
})
console.log("Initiated headless browser")
const page = await browser.newPage()
// await page.emulateMediaType('screen');
Expand Down
Loading

0 comments on commit d071dae

Please sign in to comment.