mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-05 11:32:20 +01:00
parent
b3bb10d334
commit
41d9b7073f
17
lib/frame.js
17
lib/frame.js
@ -141,10 +141,6 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
settings.onloaded(function(){
|
|
||||||
interceptWindow(window);
|
|
||||||
});
|
|
||||||
|
|
||||||
message("register listener for messages from background script");
|
message("register listener for messages from background script");
|
||||||
browser.runtime.onMessage.addListener(function(data){
|
browser.runtime.onMessage.addListener(function(data){
|
||||||
if (data["canvasBlocker-unload"]){
|
if (data["canvasBlocker-unload"]){
|
||||||
@ -162,4 +158,17 @@
|
|||||||
notice("notifications sent");
|
notice("notifications sent");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// need to wait for the settings to arrive!
|
||||||
|
while (settings.isStillDefault){
|
||||||
|
logging.message("Starting synchronous request to wait for settings.");
|
||||||
|
let xhr = new XMLHttpRequest();
|
||||||
|
xhr.open("GET", browser.extension.getURL("releaseNotes.txt"), false);
|
||||||
|
xhr.send();
|
||||||
|
logging.message("settings still default?", settings.isStillDefault);
|
||||||
|
}
|
||||||
|
|
||||||
|
settings.onloaded(function(){
|
||||||
|
interceptWindow(window);
|
||||||
|
});
|
||||||
}());
|
}());
|
Loading…
x
Reference in New Issue
Block a user