fix: make copyright year dynamic in footer

This commit is contained in:
2026-01-16 15:25:04 +01:00
parent 989d8af519
commit b5b7188bf9
2 changed files with 8 additions and 3 deletions

View File

@@ -2448,6 +2448,11 @@ function init() {
// Initialize i18n before anything else
initI18n();
// Set dynamic year in footer
document.querySelectorAll(".current-year").forEach((el) => {
el.textContent = new Date().getFullYear();
});
loadUserSettings();
// Restore cached lesson content immediately to avoid "Loading..." flash