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 5c9d46b commit e6c69cfCopy full SHA for e6c69cf
api/_lib/puppeteer.ts
@@ -17,7 +17,7 @@ async function getPage() {
17
18
export async function getScreenshot(url, width, height) {
19
const page = await getPage();
20
- await page.setViewport({ width: Number(width) || 1280, height: Number(height) || 720, deviceScaleFactor: 2 });
+ await page.setViewport({ width: Number(width) || 1280, height: Number(height) || 720, deviceScaleFactor: 2 });
21
await page.goto(url);
22
await new Promise(r => setTimeout(r, 3000));
23
const file = await page.screenshot();
0 commit comments