Skip to content

Commit cb3813b

Browse files
authored
Update puppeteer.ts
1 parent bfcf4c4 commit cb3813b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/_lib/puppeteer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export async function getScreenshot(url, width, height) {
2121
await page.goto(url {
2222
waitUntil: 'domcontentloaded',
2323
});
24+
await new Promise(r => setTimeout(r, 5000));
2425
const file = await page.screenshot();
2526
return file;
2627
}

0 commit comments

Comments
 (0)