fix: make copyright year dynamic in footer

This commit is contained in:
2026-01-16 15:25:04 +01:00
parent 9821e014c5
commit c91e8d6f32
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