Fix stats version display

This commit is contained in:
Fred Boniface 2023-03-13 20:13:10 +00:00
parent 75cc85e845
commit 49e979e151
3 changed files with 4 additions and 3 deletions

View File

@ -64,7 +64,7 @@
</div>
<!-- Footer -->
<footer>
<p>Created by <a href="https://fredboniface.co.uk" target="_blank" rel="noreferrer noopener">Fred Boniface</a> - <span id="ver_str">1.1.0</span></p>
<p>Created by <a href="https://fredboniface.co.uk" target="_blank" rel="noreferrer noopener">Fred Boniface</a> - <span id="ver_str">1.1.1</span></p>
</footer>
</body>
</html>

View File

@ -16,6 +16,7 @@ async function display(data) {
document.getElementById('server_mode').textContent = data.mode || "Unknown";
document.getElementById('ver-bkend').textContent = data.verBkend || "Unknown";
let dat = data.dat[0]
let ver = data.ver[0]
console.log(JSON.stringify(dat))
document.getElementById('time').textContent = await convertUnixLocal(dat.since);
document.getElementById('ldbws').textContent = dat.ldbws || "0";
@ -25,6 +26,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-dbman').textContent = dat.verDbman || "Unknown";
document.getElementById('ver-dbman').textContent = ver.dbmanager || "Unknown";
document.getElementById('ver-web').textContent = localStorage.getItem('ver-web') || "Unknown";
}

2
sw.js
View File

@ -1,6 +1,6 @@
/* Service Worker */
const appVersion = "1.1.0"
const appVersion = "1.1.1"
const cacheName = `owlboard-${appVersion}`;
const cacheIDs = [cacheName];
const cacheFiles = [