Skip to content

Commit

Permalink
fix(nodePrint): edge case on hardcover width calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner committed Dec 19, 2024
1 parent 1ed1012 commit 180911c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodePrint/nodePrint.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ puppeteer.launch({
else if (options.isHardcover) {
let result = '';
for (let number in sizes) {
if (numPages >= parseInt(number)) {
if (numPages > parseInt(number)) {
result = sizes[parseInt(number)];
}
}
Expand Down

0 comments on commit 180911c

Please sign in to comment.