mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(firefox): error message typo (#4623)
This commit is contained in:
parent
4ccd52c309
commit
2d99d85976
@ -797,7 +797,7 @@ function getScreenshotMimeType(options) {
|
|||||||
const fileType = mime.getType(options.path);
|
const fileType = mime.getType(options.path);
|
||||||
if (fileType === 'image/png' || fileType === 'image/jpeg')
|
if (fileType === 'image/png' || fileType === 'image/jpeg')
|
||||||
return fileType;
|
return fileType;
|
||||||
throw new Error('Unsupported screnshot mime type: ' + fileType);
|
throw new Error('Unsupported screenshot mime type: ' + fileType);
|
||||||
}
|
}
|
||||||
return 'image/png';
|
return 'image/png';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user