We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcfe815 commit 74140d2Copy full SHA for 74140d2
src/plugin/pagebreaks.js
@@ -7,7 +7,7 @@ var orig = {
7
Worker.prototype.toContainer = function toContainer() {
8
return orig.toContainer.call(this).then(function toContainer_pagebreak() {
9
// Enable page-breaks.
10
- var pageBreaks = source.querySelectorAll('.html2pdf__page-break');
+ var pageBreaks = this.prop.container.querySelectorAll('.html2pdf__page-break');
11
var pxPageHeight = this.prop.pageSize.inner.px.height;
12
Array.prototype.forEach.call(pageBreaks, function pageBreak_loop(el) {
13
el.style.display = 'block';
0 commit comments