summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/common.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/static/common.js b/static/common.js
index a7dc3a5..bf98cea 100644
--- a/static/common.js
+++ b/static/common.js
@@ -13,15 +13,15 @@ function ToggleMode() {
function setLightMode() {
swapClasses("dark", "light");
localStorage.setItem("theme", "light");
- document.getElementById("toggleIcon").src = "static/toggle.svg"
- document.getElementById("homeIcon").src = "static/home_dark.svg"
+ document.getElementById("toggleIcon").src = "/static/toggle.svg"
+ document.getElementById("homeIcon").src = "/static/home_dark.svg"
}
function setDarkMode() {
swapClasses("light", "dark");
localStorage.setItem("theme", "dark");
- document.getElementById("toggleIcon").src = "static/toggle_dark.svg"
- document.getElementById("homeIcon").src = "static/home.svg"
+ document.getElementById("toggleIcon").src = "/static/toggle_dark.svg"
+ document.getElementById("homeIcon").src = "/static/home.svg"
}
function swapClasses(baseClass, newClass) {