Gildas 7 лет назад
Родитель
Сommit
0cdc95bc6e
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      lib/single-file/frame-tree.js

+ 1 - 2
lib/single-file/frame-tree.js

@@ -134,12 +134,11 @@ this.frameTree = this.frameTree || (() => {
 		const framesData = [];
 		frameElements.forEach((frameElement, frameIndex) => {
 			const windowId = parentWindowId + WINDOW_ID_SEPARATOR + frameIndex;
-			const frameWindow = frameElement.contentWindow;
 			const frameDoc = frameElement.contentDocument;
 			if (frameDoc) {
 				try {
 					processFrames(frameDoc.querySelectorAll(FRAMES_CSS_SELECTOR), options, windowId, sessionId);
-					framesData.push(getFrameData(frameDoc, frameWindow, windowId, options));
+					framesData.push(getFrameData(frameDoc, frameElement.contentWindow, windowId, options));
 				} catch (error) {
 					framesData.push({ windowId, processed: true });
 				}