fix: add webp to screenshot quality option allow list ()

This allows passing through the screenshot quality option from Puppeteer to Chrome
when using the WebP image format
This commit is contained in:
Tomas Junnonen 2021-10-07 14:15:24 -07:00 committed by GitHub
parent 28861299a4
commit b20c2bfa24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2610,7 +2610,7 @@ export class Page extends EventEmitter {
if (options.quality) {
assert(
screenshotType === 'jpeg',
screenshotType === 'jpeg' || screenshotType === 'webp',
'options.quality is unsupported for the ' +
screenshotType +
' screenshots'