Skip to content

Commit

Permalink
increase navigation timeout for large documents
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Feb 5, 2025
1 parent bc90211 commit 0859c84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rules/links/linkchecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export async function check(sr, done) {

page.on('response', response => {
const url = simplifyURL(response.url());
console.log(url);
const { referer } = response.request().headers();

// check if resource is in same folder as base document
Expand Down Expand Up @@ -121,7 +122,7 @@ export async function check(sr, done) {
}
});

await page.goto(sr.url);
await page.goto(sr.url, { waitUntil: 'load', timeout: 60000 });

await browser.close();
done();
Expand Down

0 comments on commit 0859c84

Please sign in to comment.