Skip to content

Commit

Permalink
Temporary fix for the fullPage option
Browse files Browse the repository at this point in the history
Fixes #55

See #58
  • Loading branch information
sindresorhus committed Oct 17, 2020
1 parent 19e148c commit e52c58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ const captureWebsite = async (input, options) => {
});

// Some extra delay to let images load
await page.waitForFunction(imagesHaveLoaded, {timeout: 60});
await page.waitForFunction(imagesHaveLoaded, {timeout: timeoutInSeconds});
}

const buffer = await page.screenshot(screenshotOptions);
Expand Down

0 comments on commit e52c58f

Please sign in to comment.