Explorar o código

remove hidden inputs when "remove hidden elements" is enabled (fix #484)

Gildas %!s(int64=5) %!d(string=hai) anos
pai
achega
2bfb694fbf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -715,7 +715,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 				}
 			});
 			this.doc.querySelectorAll("link[rel*=stylesheet][rel*=alternate][title],link[rel*=stylesheet]:not([href]),link[rel*=stylesheet][href=\"\"]").forEach(element => element.remove());
-			if (this.options.compressHTML) {
+			if (this.options.removeHiddenElements) {
 				this.doc.querySelectorAll("input[type=hidden]").forEach(element => element.remove());
 			}
 			if (!this.options.saveFavicon) {