mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Small update to js config request
This commit is contained in:
parent
e72ccc4988
commit
bd773ec5ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue