chore(deps): bump dependencies (#2397)

Fixes #2394
This commit is contained in:
Andrey Lushnikov
2018-04-17 14:51:03 -07:00
committed by GitHub
parent ed4be10ae3
commit 37cc9f567d
4 changed files with 7 additions and 7 deletions

View File

@@ -687,7 +687,7 @@ class Page extends EventEmitter {
console.assert(options.type === 'png' || options.type === 'jpeg', 'Unknown options.type value: ' + options.type);
screenshotType = options.type;
} else if (options.path) {
const mimeType = mime.lookup(options.path);
const mimeType = mime.getType(options.path);
if (mimeType === 'image/png')
screenshotType = 'png';
else if (mimeType === 'image/jpeg')