Adjust frontend version display on stats

This commit is contained in:
Fred Boniface 2023-04-30 20:27:04 +01:00
parent 218e95b048
commit fbb4702b69
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,7 @@
init(); init();
async function init() { // The page init function async function init() { // The page init function
versionDisplay()
display(await get()) display(await get())
} }
@ -26,5 +27,4 @@ async function display(data) { // Parses and displays data from API
document.getElementById('meta').textContent = dat.meta || "0"; document.getElementById('meta').textContent = dat.meta || "0";
document.getElementById('pis').textContent = dat.pis document.getElementById('pis').textContent = dat.pis
document.getElementById('ver-dbman').textContent = ver.dbmanager || "Unknown"; document.getElementById('ver-dbman').textContent = ver.dbmanager || "Unknown";
document.getElementById('ver-web').textContent = localStorage.getItem('ver-web') || "Unknown";
} }

View File

@ -78,7 +78,7 @@
web-frontend web-frontend
</a> </a>
</td> </td>
<td id="ver-web"></td> <td id="ver_str">Unknown</td>
</tr> </tr>
</table> </table>
<p>The statistics represent hits & queries from all instances in the stack.</p> <p>The statistics represent hits & queries from all instances in the stack.</p>

2
sw.js
View File

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