Rename constant back to old name
This commit is contained in:
+2
-2
@@ -164,8 +164,8 @@
|
|||||||
// Auto-reload
|
// Auto-reload
|
||||||
setInterval(reload, 1000);
|
setInterval(reload, 1000);
|
||||||
|
|
||||||
const url2 = new URL('api', location.href);
|
const url = new URL('api', location.href);
|
||||||
fetch(url2, {cache: 'no-cache'}).then(r => r.json()).then(data => {
|
fetch(url, {cache: 'no-cache'}).then(r => r.json()).then(data => {
|
||||||
const info = document.querySelector('.info');
|
const info = document.querySelector('.info');
|
||||||
info.innerText = `Version: ${data.version}, Config: ${data.config_path}`;
|
info.innerText = `Version: ${data.version}, Config: ${data.config_path}`;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user