Jelajahi Sumber

remove frames when saving raw pages

Gildas 7 tahun lalu
induk
melakukan
9503b25541
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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 || (() => { });
 		}