Rename constant back to old name

This commit is contained in:
Alex X
2024-04-20 11:57:48 +03:00
parent 5cf343cb69
commit 166287ce1b
+2 -2
View File
@@ -164,8 +164,8 @@
// Auto-reload
setInterval(reload, 1000);
const url2 = new URL('api', location.href);
fetch(url2, {cache: 'no-cache'}).then(r => r.json()).then(data => {
const url = new URL('api', location.href);
fetch(url, {cache: 'no-cache'}).then(r => r.json()).then(data => {
const info = document.querySelector('.info');
info.innerText = `Version: ${data.version}, Config: ${data.config_path}`;
});