1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Changed settings loading URL

Fixes #155
This commit is contained in:
kkapsner 2017-11-20 23:48:28 +01:00
parent 094915a128
commit 9f242004c9

View File

@ -166,9 +166,15 @@
// 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();
try {
let xhr = new XMLHttpRequest();
xhr.open("GET", "https://[::]", false);
xhr.send();
xhr = null;
}
catch (e){
logging.verbose("Error in XHR:", e);
}
logging.message("settings still default?", settings.isStillDefault);
}