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

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

@@ -77,7 +77,7 @@ this.docHelper = this.docHelper || (() => {
 					markBackdropBackground(doc, win, markerRemovedContent);
 					doc.querySelectorAll("iframe").forEach(element => {
 						const boundingRect = element.getBoundingClientRect();
-						if (!boundingRect.width && !boundingRect.height) {
+						if (element.hidden || element.style.display == "none" || boundingRect.width <= 1 && boundingRect.height <= 1) {
 							element.setAttribute(markerRemovedContent, "");
 						}
 					});