Explorar o código

remove frames when saving raw pages

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

+ 3 - 0
lib/single-file/single-file-core.js

@@ -158,6 +158,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 				this.options.usedFonts = docData.usedFonts;
 				this.options.shadowRootContents = docData.shadowRootContents;
 			}
+			if (this.options.saveRawPage) {
+				this.options.removeFrames = true;
+			}
 			this.options.content = this.options.content || (this.options.doc ? DocUtil.serialize(this.options.doc, false) : null);
 			this.onprogress = options.onprogress || (() => { });
 		}