Skip to content

Commit

Permalink
Fix images.map is not a function error
Browse files Browse the repository at this point in the history
  • Loading branch information
murrple-1 authored Sep 7, 2020
1 parent 847687d commit 4780a4e
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 4780a4e

Please sign in to comment.