|
|
@@ -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 + ")");
|