Browse Source

test this.frameTree is truthy to retrieve frame contents

Gildas 7 năm trước cách đây
mục cha
commit
02acda92f7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      extension/core/content/content-bootstrap.js

+ 1 - 1
extension/core/content/content-bootstrap.js

@@ -97,7 +97,7 @@ this.singlefile.bootstrap = this.singlefile.bootstrap || (async () => {
 		if (!singlefile.pageAutoSaved || options.autoSaveUnload) {
 			options.sessionId = 0;
 			const docData = docHelper.preProcessDoc(document, window, options);
-			const framesData = (typeof frameTree != "undefined") && !options.removeFrames && frameTree.getSync(options);
+			const framesData = this.frameTree && !options.removeFrames && frameTree.getSync(options);
 			browser.runtime.sendMessage({
 				autoSaveContent: true,
 				content: docHelper.serialize(document),