Skip to content

Commit

Permalink
Prevent html print job from failing when img tags have invalid src va…
Browse files Browse the repository at this point in the history
…lues
  • Loading branch information
crabbly committed May 28, 2019
1 parent e5d41f3 commit c16e238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function loadIframeImages (images) {
const promises = []

for (let image of images) {
promises.push(loadIframeImage(image))
if (image.src && image.src !== window.location.href) promises.push(loadIframeImage(image))
}

return Promise.all(promises)
Expand Down

0 comments on commit c16e238

Please sign in to comment.