Skip to content

Commit bf7f999

Browse files
authored
Full page image: Fix blank page
1 parent 505350e commit bf7f999

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export class Browser {
130130
ignoreHTTPSErrors: this.config.ignoresHttpsErrors,
131131
dumpio: this.config.dumpio,
132132
args: this.config.args,
133+
defaultViewport: null
133134
};
134135

135136
if (this.config.chromeBin) {
@@ -397,7 +398,7 @@ export class Browser {
397398
});
398399
}
399400

400-
return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: options.fullPageImage || false });
401+
return page.screenshot({ path: options.filePath, fullPage: options.fullPageImage, captureBeyondViewport: false });
401402
}, 'screenshot');
402403

403404
if (options.scaleImage && !isPDF) {

0 commit comments

Comments
 (0)