Selaa lähdekoodia

fixed regression

Gildas 7 vuotta sitten
vanhempi
sitoutus
f6c4df821d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/single-file/doc-helper.js

+ 1 - 1
lib/single-file/doc-helper.js

@@ -167,7 +167,7 @@ this.docHelper = this.docHelper || (() => {
 			doc.querySelectorAll("img[src]").forEach((imageElement, imageElementIndex) => {
 				const computedStyle = getComputedStyle(imageElement);
 				let imageData = {}, size = getSize(imageElement);
-				if (imageElement.src && size && !computedStyle.getPropertyValue("background-image")) {
+				if (imageElement.src && size && (!computedStyle.getPropertyValue("background-image") || computedStyle.getPropertyValue("background-image") == "none")) {
 					imageElement.setAttribute(imagesAttributeName(options.sessionId), imageElementIndex);
 					imageData = size;
 				}