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

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

@@ -118,8 +118,8 @@ this.FrameTree = this.FrameTree || (() => {
 			try {
 				if (!frameElement.contentDocument) {
 					options.win = null;
-					frameElement.contentWindow.postMessage(MESSAGE_PREFIX + "::" + JSON.stringify({ method: "initRequest", windowId: frameWinId, sessionId, frameIndex, options }), "*");
-					timeout.set(() => top.postMessage(MESSAGE_PREFIX + "::" + JSON.stringify({ method: "initResponse", framesData: [], windowId: frameWinId, sessionId }), "*"), TIMEOUT_INIT_REQUEST_MESSAGE);
+					frameElement.contentWindow.postMessage(MESSAGE_PREFIX + "::" + JSON.stringify({ method: "initRequest", windowId: frameWinId, sessionId, options }), "*");
+					timeout.set(() => top.postMessage(MESSAGE_PREFIX + "::" + JSON.stringify({ method: "initResponse", framesData: [{ windowId: frameWinId, processed: true }], windowId: frameWinId, sessionId }), "*"), TIMEOUT_INIT_REQUEST_MESSAGE);
 				}
 			} catch (error) {
 				/* ignored */