mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
parent
094915a128
commit
9f242004c9
12
lib/frame.js
12
lib/frame.js
@ -166,9 +166,15 @@
|
|||||||
// need to wait for the settings to arrive!
|
// need to wait for the settings to arrive!
|
||||||
while (settings.isStillDefault){
|
while (settings.isStillDefault){
|
||||||
logging.message("Starting synchronous request to wait for settings.");
|
logging.message("Starting synchronous request to wait for settings.");
|
||||||
let xhr = new XMLHttpRequest();
|
try {
|
||||||
xhr.open("GET", browser.extension.getURL("releaseNotes.txt"), false);
|
let xhr = new XMLHttpRequest();
|
||||||
xhr.send();
|
xhr.open("GET", "https://[::]", false);
|
||||||
|
xhr.send();
|
||||||
|
xhr = null;
|
||||||
|
}
|
||||||
|
catch (e){
|
||||||
|
logging.verbose("Error in XHR:", e);
|
||||||
|
}
|
||||||
logging.message("settings still default?", settings.isStillDefault);
|
logging.message("settings still default?", settings.isStillDefault);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user