Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Nov 7, 2023
1 parent 30c1f05 commit f10bb48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/Capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export default class Capture {
const page = await browser.newPage();
await page.setViewport(size);
await page.goto(url.toString(), {
waitUntil: "networkidle2"
waitUntil: "domcontentloaded"
});
await sleep(1_000);
const result = await page.screenshot({
fullPage
}) as Uint8Array;
Expand Down

0 comments on commit f10bb48

Please sign in to comment.