fix: add webp to screenshot quality option allow list (#7631)
This allows passing through the screenshot quality option from Puppeteer to Chrome when using the WebP image format
This commit is contained in:
parent
28861299a4
commit
b20c2bfa24
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user