瀏覽代碼

remove frames when saving raw pages

Gildas 7 年之前
父節點
當前提交
9503b25541
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 || (() => { });
 		}