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