Ver código fonte

remove frames when saving raw pages

Gildas 7 anos atrás
pai
commit
9503b25541
1 arquivos alterados com 3 adições e 0 exclusões
  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 || (() => { });
 		}