Small update to js config request
parent
e72ccc4988
commit
bd773ec5ff
|
@ -43,7 +43,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
|
||||||
// Request existing config info
|
// Request existing config info
|
||||||
let xhrGET = new XMLHttpRequest();
|
let xhrGET = new XMLHttpRequest();
|
||||||
xhrGET.open("GET", "/static/config.json");
|
xhrGET.open("GET", "/config");
|
||||||
xhrGET.onload = function() {
|
xhrGET.onload = function() {
|
||||||
if (xhrGET.readyState === 4 && xhrGET.status !== 200) {
|
if (xhrGET.readyState === 4 && xhrGET.status !== 200) {
|
||||||
alert("Error loading Shoogle config");
|
alert("Error loading Shoogle config");
|
||||||
|
|
Loading…
Reference in New Issue