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:
parent
d56453289c
commit
a067d38ce3
3 changed files with 22 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue