From a2f98e77f5b74a31a8a48300a979fb2e91aecaf6 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 12 Mar 2023 12:53:20 +0000 Subject: [PATCH] Fix issues, bump version --- index.html | 2 +- js/stat.js | 5 +++-- sw.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 5a83919..e963c91 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@ diff --git a/js/stat.js b/js/stat.js index 79d0628..6338719 100644 --- a/js/stat.js +++ b/js/stat.js @@ -11,8 +11,10 @@ async function get() { } async function display(data) { + console.log(JSON.stringify(data)) document.getElementById('server_host').textContent = data.host; document.getElementById('server_mode').textContent = data.mode || "Unknown"; + document.getElementById('ver-bkend').textContent = data.verBkend || "Unknown"; let dat = data.dat[0] console.log(JSON.stringify(dat)) document.getElementById('time').textContent = await convertUnixLocal(dat.since); @@ -23,7 +25,6 @@ async function display(data) { document.getElementById('stations').textContent = dat.stations || "0"; document.getElementById('users').textContent = dat.user || "0"; document.getElementById('meta').textContent = dat.meta || "0"; - document.getElementById('ver-bkend').textContent = dat.ver-bkend || "Unknown"; - document.getElementById('ver-dbman').textContent = dat.ver-bkend || "Unknown"; + document.getElementById('ver-dbman').textContent = dat.verDbman || "Unknown"; document.getElementById('ver-web').textContent = localStorage.getItem('ver-web') || "Unknown"; } \ No newline at end of file diff --git a/sw.js b/sw.js index 77f3a51..7cfde79 100644 --- a/sw.js +++ b/sw.js @@ -1,6 +1,6 @@ /* Service Worker */ -const appVersion = "1.0.8" +const appVersion = "1.0.9" const cacheName = `owlboard-${appVersion}`; const cacheIDs = [cacheName]; const cacheFiles = [