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 973fec3 commit bb3d029Copy full SHA for bb3d029
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 || 1920, height: height || 1080 });
+ await page.setViewport({ width: width || 930, height: height || 625 });
19
const file = await page.screenshot();
20
return file;
21
}
0 commit comments