Skip to content

Commit

Permalink
No message
Browse files Browse the repository at this point in the history
  • Loading branch information
paschmann committed Jul 19, 2022
1 parent 18aa060 commit a4ad141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/db/job_daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ async function getWebsiteScreenshot(url, dest, filename, delay) {
filehandler.checkDirectory(dest);

const page = await browser.newPage();
await page.goto(url, { waitUntil: 'domcontentloaded' });
await page.goto(url, { waitUntil: 'networkidle0' });

//Wait slightly longer just in case
await new Promise(resolve => setTimeout(resolve, parseInt(delay * 1000)));
Expand Down

0 comments on commit a4ad141

Please sign in to comment.