Change fetch icons url

This commit is contained in:
Hazem Krimi
2023-11-03 23:50:01 +01:00
parent 113620e4da
commit c906b26105
3 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -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;