0
0
mirror of https://github.com/puppeteer/puppeteer synced 2024-06-14 14:02:48 +00:00

fix(firefox): error message typo ()

This commit is contained in:
Andrey Sidorov 2019-06-27 03:58:05 +10:00 committed by Andrey Lushnikov
parent 4ccd52c309
commit 2d99d85976

View File

@ -797,7 +797,7 @@ function getScreenshotMimeType(options) {
const fileType = mime.getType(options.path);
if (fileType === 'image/png' || fileType === 'image/jpeg')
return fileType;
throw new Error('Unsupported screnshot mime type: ' + fileType);
throw new Error('Unsupported screenshot mime type: ' + fileType);
}
return 'image/png';
}