Add favicon

This commit is contained in:
2023-10-17 14:59:28 +01:00
parent 346f3de193
commit 74e9f9feaf
5 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ const localTheme = window.localStorage && window.localStorage.getItem("lightThem
const themeToggle = document.querySelector(".theme-toggle")
function changeFavicon() {
const src = document.documentElement.classList.contains("dark-theme") ? "/img/favicon-dark.png" : "/img/favicon.png";
const src = document.documentElement.classList.contains("dark-theme") ? "/assets/images/favicon-dark.png" : "/assets/images/favicon.png";
const link = document.createElement('link'),
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';