Skip to content

Commit 15371c5

Browse files
authored
Merge pull request #470 from murrple-1/patch-1
Fix `images.map is not a function` error
2 parents fd07450 + 4780a4e commit 15371c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/print.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Print = {
3737
const images = printDocument.getElementsByTagName('img')
3838

3939
if (images.length > 0) {
40-
loadIframeImages(images).then(() => performPrint(iframeElement, params))
40+
loadIframeImages(Array.from(images)).then(() => performPrint(iframeElement, params))
4141
} else {
4242
performPrint(iframeElement, params)
4343
}

0 commit comments

Comments
 (0)