1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Update Puppeteer to version 21.6.0 and force "CDP" protocol

This commit is contained in:
Henrik Skupin 2023-12-08 12:27:44 +01:00
parent d56453289c
commit a067d38ce3
No known key found for this signature in database
GPG key ID: AEB189C8ED815074
3 changed files with 22 additions and 18 deletions

View file

@ -908,6 +908,7 @@ function unitTestPostHandler(req, res) {
async function startBrowser({ browserName, headless, startUrl }) {
const options = {
product: browserName,
protocol: "cdp",
// Note that using `headless: true` gives a deprecation warning; see
// https://github.com/puppeteer/puppeteer#default-runtime-settings.
headless: headless === true ? "new" : false,