Gildas пре 7 година
родитељ
комит
87ae05c32b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/single-file/doc-helper.js

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

@@ -252,7 +252,7 @@ this.docHelper = this.docHelper || (() => {
 	function getImageData(doc, options) {
 		if (doc) {
 			const data = [];
-			doc.querySelectorAll("img[src]").forEach((imageElement, imageElementIndex) => {
+			doc.querySelectorAll("img[src]:not([srcset])").forEach((imageElement, imageElementIndex) => {
 				const computedStyle = getComputedStyle(imageElement);
 				let imageData = {}, size = getSize(imageElement);
 				if (imageElement.src && size && (!computedStyle.getPropertyValue("background-image") || computedStyle.getPropertyValue("background-image") == "none")) {