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 5bfd648 commit 6c65ba4Copy full SHA for 6c65ba4
api/_lib/chromium.ts
@@ -15,7 +15,7 @@ async function getPage() {
15
export async function getScreenshot(url, width, height) {
16
const page = await getPage();
17
await page.goto(url);
18
- await page.setViewport({ width: width || 1366, height: height || 625 });
+ await page.setViewport({ width: Number(width) || 1366, height: Number(height) || 625 });
19
const file = await page.screenshot();
20
return file;
21
}
0 commit comments