|
|
@@ -25,7 +25,7 @@ this.FrameTree = (() => {
|
|
|
const browser = this.browser || this.chrome;
|
|
|
|
|
|
const MESSAGE_PREFIX = "__FrameTree__";
|
|
|
- const TIMEOUT_POST_MESSAGE = 1000;
|
|
|
+ const TIMEOUT_INIT_REQUEST_MESSAGE = 1000;
|
|
|
const TIMEOUT_DATA_RESPONSE_MESSAGE = 1000;
|
|
|
|
|
|
const FrameTree = {
|
|
|
@@ -153,7 +153,7 @@ this.FrameTree = (() => {
|
|
|
topWindow.addEventListener("message", onMessage, false);
|
|
|
} else if (frameWindow) {
|
|
|
frameWindow.postMessage(MESSAGE_PREFIX + "::" + JSON.stringify({ method: "initRequest", windowId: frameWinId, index }), "*");
|
|
|
- setTimeout(() => top.postMessage(MESSAGE_PREFIX + "::" + JSON.stringify({ method: "initResponse", framesData: [], windowId: frameWinId, index }), "*"), TIMEOUT_POST_MESSAGE);
|
|
|
+ setTimeout(() => top.postMessage(MESSAGE_PREFIX + "::" + JSON.stringify({ method: "initResponse", framesData: [], windowId: frameWinId, index }), "*"), TIMEOUT_INIT_REQUEST_MESSAGE);
|
|
|
}
|
|
|
|
|
|
function onMessage(event) {
|