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

+ 4 - 4
lib/single-file/frame-tree.js

@@ -116,13 +116,13 @@ this.frameTree = this.frameTree || (() => {
 	}
 
 	function processFrames(frameElements, options, parentWindowId, sessionId) {
-		processFramesSync(frameElements, options, parentWindowId, sessionId);
+		processFramesAsync(frameElements, options, parentWindowId, sessionId);
 		if (frameElements.length) {
-			processFramesAsync(frameElements, options, parentWindowId, sessionId);
+			processFramesSync(frameElements, options, parentWindowId, sessionId);
 		}
 	}
 
-	function processFramesSync(frameElements, options, parentWindowId, sessionId) {
+	function processFramesAsync(frameElements, options, parentWindowId, sessionId) {
 		let framesData = [];
 		frameElements.forEach((frameElement, frameIndex) => {
 			const windowId = parentWindowId + "." + frameIndex;
@@ -140,7 +140,7 @@ this.frameTree = this.frameTree || (() => {
 		sendInitResponse({ framesData, parentWindowId, sessionId });
 	}
 
-	function processFramesAsync(frameElements, options, parentWindowId, sessionId) {
+	function processFramesSync(frameElements, options, parentWindowId, sessionId) {
 		let framesData = [];
 		frameElements.forEach((frameElement, frameIndex) => {
 			const windowId = parentWindowId + "." + frameIndex;