Explorar o código

removed isTopWindow function

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
8149fed7f4
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  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;
-	}
-
 })();