Skip to content

Commit c16e238

Browse files
committed
Prevent html print job from failing when img tags have invalid src values
1 parent e5d41f3 commit c16e238

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
@@ -71,7 +71,7 @@ function loadIframeImages (images) {
7171
const promises = []
7272

7373
for (let image of images) {
74-
promises.push(loadIframeImage(image))
74+
if (image.src && image.src !== window.location.href) promises.push(loadIframeImage(image))
7575
}
7676

7777
return Promise.all(promises)

0 commit comments

Comments
 (0)