diff --git a/frontend/index.html b/frontend/index.html index 827f1eb..0a7569a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,8 +3,8 @@ - - Calendarr v18 + + Calendarr @@ -895,7 +895,7 @@ scarriffleservices@gmail.com

diff --git a/frontend/js/calendar.js b/frontend/js/calendar.js index 702a33d..de0be27 100644 --- a/frontend/js/calendar.js +++ b/frontend/js/calendar.js @@ -7,6 +7,14 @@ import { renderQuarter } from './views/quarter.js'; import { openColorPicker } from './color-picker.js'; import { openDatePicker, formatDtDisplay } from './date-picker.js'; import { t, setLang, getLang } from './i18n.js'; +import { APP_VERSION } from './version.js'; + +// Version sofort beim Modul-Load ueberall sichtbar setzen. +document.title = `Calendarr ${APP_VERSION}`; +document.addEventListener('DOMContentLoaded', () => { + const imp = document.getElementById('impressum-version'); + if (imp) imp.textContent = `Calendarr ${APP_VERSION}`; +}); // Fetch avatar image as blob URL (with auth header) function fetchAvatarBlob() { @@ -439,7 +447,7 @@ function updateTitle() { titleEl.innerHTML = `${main}` + (year ? `${year}` : ''); - document.title = `Calendarr - ${fullText}`; + document.title = `Calendarr ${APP_VERSION} - ${fullText}`; } function updateViewButtons() { diff --git a/frontend/js/version.js b/frontend/js/version.js index b8dfc41..c7fd4d5 100644 --- a/frontend/js/version.js +++ b/frontend/js/version.js @@ -1,2 +1,2 @@ // Increment APP_VERSION with every code change -export const APP_VERSION = 'v20'; +export const APP_VERSION = 'v21'; diff --git a/frontend/sw.js b/frontend/sw.js index 4c460d0..efb9c6b 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -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-v20'; +const CACHE_VERSION = 'calendarr-v21'; const OFFLINE_SHELL = ['/', '/index.html']; self.addEventListener('install', event => {