فهرست منبع

increased timeout value when waiting for frame contents (fix #318)

Former-commit-id: 84b7efe9277c959052ea12517eba84431e09ca87
Gildas 6 سال پیش
والد
کامیت
f9e3b2d1a5
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      lib/single-file/processors/frame-tree/content/content-frame-tree.js

+ 2 - 1
lib/single-file/processors/frame-tree/content/content-frame-tree.js

@@ -34,7 +34,7 @@ this.singlefile.lib.processors.frameTree.content.frames = this.singlefile.lib.pr
 	const CLEANUP_REQUEST_MESSAGE = "singlefile.frameTree.cleanupRequest";
 	const INIT_RESPONSE_MESSAGE = "singlefile.frameTree.initResponse";
 	const TARGET_ORIGIN = "*";
-	const TIMEOUT_INIT_REQUEST_MESSAGE = 750;
+	const TIMEOUT_INIT_REQUEST_MESSAGE = 5000;
 	const TOP_WINDOW_ID = "0";
 	const WINDOW_ID_SEPARATOR = ".";
 	const TOP_WINDOW = window == window.top;
@@ -54,6 +54,7 @@ this.singlefile.lib.processors.frameTree.content.frames = this.singlefile.lib.pr
 		if (browser && browser.runtime && browser.runtime.onMessage && browser.runtime.onMessage.addListener) {
 			browser.runtime.onMessage.addListener(message => {
 				if (message.method == INIT_RESPONSE_MESSAGE) {
+					console.log(message);
 					initResponse(message);
 					return Promise.resolve({});
 				}