From 166287ce1b7c64509106af1689369568c63e53f4 Mon Sep 17 00:00:00 2001 From: Alex X Date: Sat, 20 Apr 2024 11:57:48 +0300 Subject: [PATCH] Rename constant back to old name --- www/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/index.html b/www/index.html index 35c4606d..a3015acf 100644 --- a/www/index.html +++ b/www/index.html @@ -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}`; });