adventskalender/2025/js/background.js aktualisiert
This commit is contained in:
@@ -24,7 +24,11 @@
|
||||
const basePath = "assets/images/";
|
||||
|
||||
// === Favicon setzen (.webp) ===
|
||||
function setFavicon(filename) {
|
||||
// Aufruf:
|
||||
setFavicon(filename);
|
||||
|
||||
// Funktion:
|
||||
function setFavicon(name) {
|
||||
let link = document.querySelector('link[rel="icon"]');
|
||||
if (!link) {
|
||||
link = document.createElement("link");
|
||||
@@ -32,7 +36,7 @@
|
||||
link.type = "image/png";
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
link.href = `assets/images/1920/webp/${filename}`;
|
||||
link.href = `assets/images/1920/webp/${name}.webp`;
|
||||
}
|
||||
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
Reference in New Issue
Block a user