Skip to content

Commit 4780a4e

Browse files
authored
Fix images.map is not a function error
1 parent 847687d commit 4780a4e

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)