Skip to content

Commit

Permalink
Merge pull request crabbly#470 from murrple-1/patch-1
Browse files Browse the repository at this point in the history
Fix `images.map is not a function` error
  • Loading branch information
crabbly authored Sep 9, 2020
2 parents fd07450 + 4780a4e commit 15371c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Print = {
const images = printDocument.getElementsByTagName('img')

if (images.length > 0) {
loadIframeImages(images).then(() => performPrint(iframeElement, params))
loadIframeImages(Array.from(images)).then(() => performPrint(iframeElement, params))
} else {
performPrint(iframeElement, params)
}
Expand Down

0 comments on commit 15371c5

Please sign in to comment.