fix(version): Sidebar-Copyright wird jetzt auch aus version.js befuellt

This commit is contained in:
Scarriffle
2026-05-19 10:22:13 +02:00
parent 275e5a2ae0
commit 362cc7212c
4 changed files with 5 additions and 3 deletions

View File

@@ -199,7 +199,7 @@
<div id="cal-list-items"></div>
</div>
</div>
<button class="sidebar-copyright" onclick="openImpressum()">©&nbsp;2026&nbsp;Scarriffleservices&nbsp;·&nbsp;v18</button>
<button class="sidebar-copyright" id="sidebar-copyright" onclick="openImpressum()">©&nbsp;2026&nbsp;Scarriffleservices</button>
</aside>
<div id="sidebar-backdrop" class="sidebar-backdrop"></div>

View File

@@ -14,6 +14,8 @@ document.title = `Calendarr ${APP_VERSION}`;
document.addEventListener('DOMContentLoaded', () => {
const imp = document.getElementById('impressum-version');
if (imp) imp.textContent = `Calendarr ${APP_VERSION}`;
const side = document.getElementById('sidebar-copyright');
if (side) side.innerHTML = `©&nbsp;2026&nbsp;Scarriffleservices&nbsp;·&nbsp;${APP_VERSION}`;
});
// Fetch avatar image as blob URL (with auth header)

View File

@@ -1,2 +1,2 @@
// Increment APP_VERSION with every code change
export const APP_VERSION = 'v22';
export const APP_VERSION = 'v23';

View File

@@ -7,7 +7,7 @@
// the entry HTML / version files). New releases take effect on the next
// reload, no manual SW unregister required.
const CACHE_VERSION = 'calendarr-v22';
const CACHE_VERSION = 'calendarr-v23';
const OFFLINE_SHELL = ['/', '/index.html'];
self.addEventListener('install', event => {