diff --git a/assets/js/baseof.js b/assets/js/baseof.js index 8710898..648965d 100644 --- a/assets/js/baseof.js +++ b/assets/js/baseof.js @@ -41,7 +41,7 @@ function loadTheme() { root.style.setProperty('--text', theme === 'light' ? 'black' : 'white'); root.style.setProperty('--color', theme === 'light' ? 'black' : 'white'); - fetch(`../icons/${theme === 'light' ? 'sun' : 'moon'}.svg`) + fetch(`./../icons/${theme === 'light' ? 'sun' : 'moon'}.svg`) .then((response) => response.text()) .then((svg) => { themeTogglers.forEach(themeToggler => { diff --git a/assets/js/partials/header.js b/assets/js/partials/header.js index 414a250..c149f7e 100644 --- a/assets/js/partials/header.js +++ b/assets/js/partials/header.js @@ -1,5 +1,5 @@ function loadBurger() { - fetch(`../icons/${burgerOpen ? 'close' : 'burger'}.svg`) + fetch(`./../icons/${burgerOpen ? 'close' : 'burger'}.svg`) .then((response) => response.text()) .then((svg) => { burgerPlaceholder.innerHTML = svg;