|
|
@@ -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;
|