Fix stats version display
This commit is contained in:
parent
75cc85e845
commit
49e979e151
@ -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>
|
||||
|
@ -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";
|
||||
}
|
Reference in New Issue
Block a user