summaryrefslogtreecommitdiff
path: root/static/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/common.js')
-rw-r--r--static/common.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/common.js b/static/common.js
index 1d6234b..e5a278e 100644
--- a/static/common.js
+++ b/static/common.js
@@ -11,12 +11,14 @@ function setLightMode() {
swapClasses("dark", "light");
isLightMode = true;
document.getElementById("toggleIcon").src = "static/toggle.svg"
+ document.getElementById("homeIcon").src = "static/home_dark.svg"
}
function setDarkMode() {
swapClasses("light", "dark");
isLightMode = false;
document.getElementById("toggleIcon").src = "static/toggle_dark.svg"
+ document.getElementById("homeIcon").src = "static/home.svg"
}
function swapClasses(baseClass, newClass) {