From 9f242004c9ae04c0550195830b0e0852e080ea40 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Mon, 20 Nov 2017 23:48:28 +0100 Subject: [PATCH] Changed settings loading URL Fixes #155 --- lib/frame.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/frame.js b/lib/frame.js index cd37dce..55b9373 100644 --- a/lib/frame.js +++ b/lib/frame.js @@ -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); }