mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-08-11 09:16:23 -04:00
Small update to js config request
This commit is contained in:
parent
e72ccc4988
commit
bd773ec5ff
@ -43,7 +43,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
// Request existing config info
|
||||
let xhrGET = new XMLHttpRequest();
|
||||
xhrGET.open("GET", "/static/config.json");
|
||||
xhrGET.open("GET", "/config");
|
||||
xhrGET.onload = function() {
|
||||
if (xhrGET.readyState === 4 && xhrGET.status !== 200) {
|
||||
alert("Error loading Shoogle config");
|
||||
|
Loading…
x
Reference in New Issue
Block a user