Skip to content

Commit e03cd81

Browse files
committed
switch back to full height again
1 parent 8bb5ebb commit e03cd81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function convertToPDF(tab, url, name, i, stylesheet) {
4545

4646
let height = await page.evaluate(() => {
4747
let article = document.querySelector("#content article") || document.querySelector("#content") || document.body;
48-
return 0.95 * article.scrollHeight; // seems there is some extra percentage of extra length
48+
return article.scrollHeight;
4949
});
5050
await page.pdf({ path, height, "printBackground": true });
5151
return path;

0 commit comments

Comments
 (0)