Skip to content

Commit

Permalink
Rename constant back to old name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 20, 2024
1 parent 5cf343c commit 166287c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
});
Expand Down

0 comments on commit 166287c

Please sign in to comment.