Skip to content

Commit

Permalink
Full page image: Fix blank page
Browse files Browse the repository at this point in the history
  • Loading branch information
juanicabanas authored Aug 13, 2024
1 parent 505350e commit bf7f999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export class Browser {
ignoreHTTPSErrors: this.config.ignoresHttpsErrors,
dumpio: this.config.dumpio,
args: this.config.args,
defaultViewport: null
};

if (this.config.chromeBin) {
Expand Down Expand Up @@ -397,7 +398,7 @@ export class Browser {
});
}

return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: options.fullPageImage || false });
return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: false });
}, 'screenshot');

if (options.scaleImage && !isPDF) {
Expand Down

0 comments on commit bf7f999

Please sign in to comment.