Skip to content

Commit cfc00c6

Browse files
committed
Change forEach to support MS browsers (closes #9)
1 parent 474b36e commit cfc00c6

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
@@ -61,7 +61,7 @@ var html2pdf = (function(html2canvas, jsPDF) {
6161
var containerRect = unitConvert(container.getBoundingClientRect(), pageSize.k);
6262

6363
// Treat each client rect as a separate link (for text-wrapping).
64-
links.forEach(function(link) {
64+
Array.prototype.forEach.call(links, function(link) {
6565
var clientRects = link.getClientRects();
6666
for (var i=0; i<clientRects.length; i++) {
6767
var clientRect = unitConvert(clientRects[i], pageSize.k);

0 commit comments

Comments
 (0)