diff --git a/src/js/print.js b/src/js/print.js index 3a76dbd..bbcd644 100644 --- a/src/js/print.js +++ b/src/js/print.js @@ -68,11 +68,12 @@ function performPrint (iframeElement, params) { } function loadIframeImages (images) { - const promises = [] - - for (let image of images) { - if (image.src && image.src !== window.location.href) promises.push(loadIframeImage(image)) - } + const promises = Array.prototype.slice.call(images).reduce((memo, image) => { + if (image.src && image.src !== window.location.href) { + memo.push(loadIframeImage(image)); + } + return memo; + }, []); return Promise.all(promises) }