Ver Fonte

remove more hidden frames

Gildas há 7 anos atrás
pai
commit
51f0c65329
1 ficheiros alterados com 1 adições e 1 exclusões
  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, "");
 						}
 					});