Explorar o código

removed this.

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
b09e288cd7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -1339,7 +1339,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			if (imgElement.getAttribute(dataAttributeName) != null) {
 				const imgData = options.imageData[Number(imgElement.getAttribute(dataAttributeName))];
 				imgElement.setAttribute("src", `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="${imgData.pxWidth}" height="${imgData.pxHeight}"><rect fill-opacity="0"/></svg>`);
-				if (this.options.lazyLoadImages) {
+				if (options.lazyLoadImages) {
 					imgElement.setAttribute(GROUPED_IMG_ATTRIBUTE_NAME, "");
 				}
 				DomProcessorHelper.setBackgroundImage(imgElement, "var(" + variableName + ")");