adventskalender/2025/js/background.js aktualisiert

This commit is contained in:
2025-11-06 21:57:55 +00:00
parent a1dd06ad8c
commit e5700de62d

View File

@@ -26,10 +26,10 @@
}
// === Bildpfad bestimmen ===
let imgPath = "assets/picture/Basisbild.png";
let imgPath = "assets/image/Basisbild.webp";
if (dayToShow >= 1 && dayToShow <= 24) {
const padded = String(dayToShow).padStart(2, "0");
imgPath = `assets/picture/${padded}.png`;
imgPath = `assets/image/${padded}.ebp`;
}
// === Funktion zum Setzen des Favicons ===