ソースを参照

fixed ERR issue with "remove frames" option enabled

Gildas 7 年 前
コミット
567f7bef78
1 ファイル変更1 行追加1 行削除
  1. 1 1
      extension/core/content/content.js

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

@@ -128,7 +128,7 @@ this.singlefile.top = this.singlefile.top || (() => {
 			}
 		};
 		[options.framesData] = await Promise.all(preInitializationPromises);
-		const selectedFrame = options.framesData.find(frameData => frameData.requestedFrame);
+		const selectedFrame = options.framesData && options.framesData.find(frameData => frameData.requestedFrame);
 		options.win = window;
 		if (selectedFrame) {
 			options.content = selectedFrame.content;