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! // 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);
} }