Skip to content
Permalink
Browse files
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
  • Loading branch information
tjunnone committed Oct 7, 2021
1 parent 2886129 commit b20c2bfa24cbdd4a1b9cefca2e0a9407e442baf5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/common/Page.ts
@@ -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'

0 comments on commit b20c2bf

Please sign in to comment.