Skip to content

Commit d2b5673

Browse files
authored
Update puppeteer.ts
1 parent 6150da1 commit d2b5673

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/_lib/puppeteer.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ async function getPage() {
1818
export async function getScreenshot(url, width, height) {
1919
const page = await getPage();
2020
await page.setViewport({ width: Number(width) || 1280, height: Number(height) || 720, deviceScaleFactor: 2 });
21-
await page.goto(url {
22-
waitUntil: 'networkidle0',
23-
});
21+
await page.goto(url);
2422
const file = await page.screenshot();
2523
return file;
2624
}

0 commit comments

Comments
 (0)