We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6150da1 commit d2b5673Copy full SHA for d2b5673
api/_lib/puppeteer.ts
@@ -18,9 +18,7 @@ async function getPage() {
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 });
21
- await page.goto(url {
22
- waitUntil: 'networkidle0',
23
- });
+ await page.goto(url);
24
const file = await page.screenshot();
25
return file;
26
}
0 commit comments