|
|
@@ -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({});
|
|
|
}
|