Преглед изворни кода

fixed issue #16 in SingleFileZ repository

Former-commit-id: b45a7c616c65181c10277dbe38c41c4748b8a68d
Gildas пре 6 година
родитељ
комит
d4a3c2d808
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -575,7 +575,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 			}
 
 			function removeNode(node) {
-				if (canHideNode(node)) {
+				if ((node.nodeType != 1 || !node.querySelector("svg,style,link")) && canHideNode(node)) {
 					node.remove();
 				}
 			}