mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update fetching icons urls
This commit is contained in:
+1
-1
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user