Skip to content

Commit

Permalink
feat: upgrade puppeteer to 21.9.0 and use waitForNetworkIdle
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbfcd authored Jan 25, 2024
1 parent 4326bde commit da502a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ const internalCaptureWebsiteCore = async (input, options, page, browser) => {
const viewportHeight = viewportOptions.height;
let viewportIncrement = 0;
while (viewportIncrement + viewportHeight < bodyBoundingHeight.height) {
const navigationPromise = page.waitForNavigation({waitUntil: 'networkidle0'});
const navigationPromise = page.waitForNetworkIdle();
/* eslint-disable no-await-in-loop */
await page.evaluate(_viewportHeight => {
/* eslint-disable no-undef */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@cliqz/adblocker-puppeteer": "^1.26.11",
"file-url": "^4.0.0",
"puppeteer": "^21.5.0",
"puppeteer": "^21.9.0",
"tough-cookie": "^4.1.3"
},
"devDependencies": {
Expand Down

0 comments on commit da502a3

Please sign in to comment.