ソースを参照

renamed constant

Gildas 7 年 前
コミット
988da5a0ac
1 ファイル変更2 行追加2 行削除
  1. 2 2
      lib/frame-tree/content/frame-tree.js

+ 2 - 2
lib/frame-tree/content/frame-tree.js

@@ -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) {