From fb2adbb65087252c0fd0392c8fa8f0218bffa22b Mon Sep 17 00:00:00 2001 From: Physcik Date: Fri, 26 Dec 2025 20:08:28 +0500 Subject: Articles idnexing --- static/common.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'static') 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) { -- cgit v1.3