Skip to content

Commit 8bd5481

Browse files
committed
More fixes to forEach
1 parent cfc00c6 commit 8bd5481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html2pdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ var html2pdf = (function(html2canvas, jsPDF) {
151151
// Enable page-breaks.
152152
var pageBreaks = source.querySelectorAll('.html2pdf__page-break');
153153
var pxPageHeight = pageSize.inner.height * pageSize.k / 72 * 96;
154-
pageBreaks.forEach(function(el) {
154+
Array.prototype.forEach.call(pageBreaks, function(el) {
155155
el.style.display = 'block';
156156
var clientRect = el.getBoundingClientRect();
157157
el.style.height = pxPageHeight - (clientRect.top % pxPageHeight) + 'px';

0 commit comments

Comments
 (0)