Просмотр исходного кода

fixed ERR issue with "remove frames" option enabled

Gildas 7 лет назад
Родитель
Сommit
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;