From 4780a4e488e3465d295f5dd00154549280a35275 Mon Sep 17 00:00:00 2001 From: Murray Christopherson Date: Mon, 7 Sep 2020 16:50:36 -0700 Subject: [PATCH] Fix `images.map is not a function` error --- src/js/print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/print.js b/src/js/print.js index 636eb17..deee4ca 100644 --- a/src/js/print.js +++ b/src/js/print.js @@ -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) }