|
@@ -70,7 +70,7 @@ this.singlefile.extension.core.content.bootstrap = this.singlefile.extension.cor
|
|
|
const docData = helper.preProcessDoc(document, window, options);
|
|
const docData = helper.preProcessDoc(document, window, options);
|
|
|
let frames = [];
|
|
let frames = [];
|
|
|
autoSaveTimeout = null;
|
|
autoSaveTimeout = null;
|
|
|
- if (!options.removeFrames && singlefile.lib.frameTree.content.frames) {
|
|
|
|
|
|
|
+ if (!options.removeFrames && singlefile.lib.frameTree.content.frames && window.frames && window.frames.length) {
|
|
|
frames = await singlefile.lib.frameTree.content.frames.getAsync(options);
|
|
frames = await singlefile.lib.frameTree.content.frames.getAsync(options);
|
|
|
}
|
|
}
|
|
|
browser.runtime.sendMessage({
|
|
browser.runtime.sendMessage({
|
|
@@ -114,7 +114,7 @@ this.singlefile.extension.core.content.bootstrap = this.singlefile.extension.cor
|
|
|
if (!pageAutoSaved || options.autoSaveUnload) {
|
|
if (!pageAutoSaved || options.autoSaveUnload) {
|
|
|
const docData = helper.preProcessDoc(document, window, options);
|
|
const docData = helper.preProcessDoc(document, window, options);
|
|
|
let frames = [];
|
|
let frames = [];
|
|
|
- if (!options.removeFrames && singlefile.lib.frameTree.content.frames) {
|
|
|
|
|
|
|
+ if (!options.removeFrames && singlefile.lib.frameTree.content.frames && window.frames && window.frames.length) {
|
|
|
frames = singlefile.lib.frameTree.content.frames.getSync(options);
|
|
frames = singlefile.lib.frameTree.content.frames.getSync(options);
|
|
|
}
|
|
}
|
|
|
browser.runtime.sendMessage({
|
|
browser.runtime.sendMessage({
|