We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0610a79 commit 973fec3Copy full SHA for 973fec3
api/_lib/chromium.ts
@@ -16,6 +16,6 @@ export async function getScreenshot(url, width, height) {
16
const page = await getPage();
17
await page.goto(url);
18
await page.setViewport({ width: width || 1920, height: height || 1080 });
19
- const file = await page.screenshot({ 'png' });
+ const file = await page.screenshot();
20
return file;
21
}
0 commit comments