Explorar o código

don't stop the top window

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
8fcc10ca17
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/frame-tree.js

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

@@ -44,7 +44,7 @@ this.frameTree = this.frameTree || (() => {
 	addEventListener("message", event => {
 		if (typeof event.data == "string" && event.data.startsWith(MESSAGE_PREFIX)) {
 			const message = JSON.parse(event.data.substring(MESSAGE_PREFIX.length));
-			if (message.method == INIT_REQUEST_MESSAGE) {
+			if (!TOP_WINDOW && message.method == INIT_REQUEST_MESSAGE) {
 				window.stop();
 				initRequest(message);
 			} else if (message.method == INIT_RESPONSE_MESSAGE) {