Skip to content

Commit

Permalink
Update render-core.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasc committed Jul 22, 2020
1 parent 218d391 commit 05d157a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/render-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async function render(_opts = {}) {
}
data = await page.pdf(opts.pdf);
} else if (opts.output === 'html') {
data = await page.evaluate(() => document.body.innerHTML);
data = await page.evaluate(() => document.documentElement.innerHTML);
} else {
// This is done because puppeteer throws an error if fullPage and clip is used at the same
// time even though clip is just empty object {}
Expand Down Expand Up @@ -248,4 +248,3 @@ function logOpts(opts) {
module.exports = {
render,
};

0 comments on commit 05d157a

Please sign in to comment.