فهرست منبع

removed this.

Gildas 7 سال پیش
والد
کامیت
b09e288cd7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 + ")");