فهرست منبع

ignore responsive images

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")) {