fixes version not showing up in web ui
This commit is contained in:
@@ -37,10 +37,7 @@ window.addEventListener('popstate', e => {
|
||||
|
||||
// ── Bootstrap ─────────────────────────────────────────────────────────────────
|
||||
|
||||
fetch('/package.json')
|
||||
.then(r => r.json())
|
||||
.then(pkg => { document.getElementById('nav-version').textContent = `v${pkg.version}`; })
|
||||
.catch(() => {});
|
||||
if (VERSION) document.getElementById('nav-version').textContent = `v${VERSION}`;
|
||||
|
||||
initDB().then(() => {
|
||||
renderDashboard();
|
||||
|
||||
Reference in New Issue
Block a user