Skip to content

Commit 973fec3

Browse files
authored
Update chromium.ts
1 parent 0610a79 commit 973fec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/_lib/chromium.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ export async function getScreenshot(url, width, height) {
1616
const page = await getPage();
1717
await page.goto(url);
1818
await page.setViewport({ width: width || 1920, height: height || 1080 });
19-
const file = await page.screenshot({ 'png' });
19+
const file = await page.screenshot();
2020
return file;
2121
}

0 commit comments

Comments
 (0)