소스 검색

removed isTopWindow function

Gildas 7 년 전
부모
커밋
8149fed7f4
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      lib/single-file/frame-tree.js

+ 1 - 5
lib/single-file/frame-tree.js

@@ -28,7 +28,7 @@ this.frameTree = this.frameTree || (() => {
 	const INIT_RESPONSE_MESSAGE = "initResponse";
 	const TIMEOUT_INIT_REQUEST_MESSAGE = 500;
 	const TOP_WINDOW_ID = "0";
-	const TOP_WINDOW = isTopWindow(window);
+	const TOP_WINDOW = window == top;
 
 	let sessions = new Map(), windowId;
 
@@ -174,8 +174,4 @@ this.frameTree = this.frameTree || (() => {
 		}
 	}
 
-	function isTopWindow(win) {
-		return win == top;
-	}
-
 })();