소스 검색

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;