Fix stats version display
This commit is contained in:
parent
75cc85e845
commit
49e979e151
@ -64,7 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<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>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -16,6 +16,7 @@ async function display(data) {
|
|||||||
document.getElementById('server_mode').textContent = data.mode || "Unknown";
|
document.getElementById('server_mode').textContent = data.mode || "Unknown";
|
||||||
document.getElementById('ver-bkend').textContent = data.verBkend || "Unknown";
|
document.getElementById('ver-bkend').textContent = data.verBkend || "Unknown";
|
||||||
let dat = data.dat[0]
|
let dat = data.dat[0]
|
||||||
|
let ver = data.ver[0]
|
||||||
console.log(JSON.stringify(dat))
|
console.log(JSON.stringify(dat))
|
||||||
document.getElementById('time').textContent = await convertUnixLocal(dat.since);
|
document.getElementById('time').textContent = await convertUnixLocal(dat.since);
|
||||||
document.getElementById('ldbws').textContent = dat.ldbws || "0";
|
document.getElementById('ldbws').textContent = dat.ldbws || "0";
|
||||||
@ -25,6 +26,6 @@ async function display(data) {
|
|||||||
document.getElementById('stations').textContent = dat.stations || "0";
|
document.getElementById('stations').textContent = dat.stations || "0";
|
||||||
document.getElementById('users').textContent = dat.user || "0";
|
document.getElementById('users').textContent = dat.user || "0";
|
||||||
document.getElementById('meta').textContent = dat.meta || "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";
|
document.getElementById('ver-web').textContent = localStorage.getItem('ver-web') || "Unknown";
|
||||||
}
|
}
|
2
sw.js
2
sw.js
@ -1,6 +1,6 @@
|
|||||||
/* Service Worker */
|
/* Service Worker */
|
||||||
|
|
||||||
const appVersion = "1.1.0"
|
const appVersion = "1.1.1"
|
||||||
const cacheName = `owlboard-${appVersion}`;
|
const cacheName = `owlboard-${appVersion}`;
|
||||||
const cacheIDs = [cacheName];
|
const cacheIDs = [cacheName];
|
||||||
const cacheFiles = [
|
const cacheFiles = [
|
||||||
|
Reference in New Issue
Block a user