diff --git a/index.html b/index.html index 40815ebc..0460ddb8 100644 --- a/index.html +++ b/index.html @@ -2019,14 +2019,11 @@ - - - Login FAQ @@ -2473,6 +2470,7 @@

My Activity

">
My Activity "> Service Usage - + +
@@ -2509,10 +2510,11 @@

My Activity

max-height: 250px; overflow-y: auto; "> -
  • + + diff --git a/index.js b/index.js index d868d9ac..304c9a08 100644 --- a/index.js +++ b/index.js @@ -37,20 +37,18 @@ const refreshThemeStyles = () => { // Theme Management // Theme Management const applyTheme = (theme) => { - document.documentElement.setAttribute('data-theme', theme); - localStorage.setItem('theme', theme); - - if (theme === 'dark') { - if (themeText) themeText.textContent = 'Light Mode'; - if (moonIcon) moonIcon.style.display = 'none'; - if (sunIcon) sunIcon.style.display = 'inline-block'; - } else { - if (themeText) themeText.textContent = 'Dark Mode'; - if (moonIcon) moonIcon.style.display = 'inline-block'; - if (sunIcon) sunIcon.style.display = 'none'; - } + document.documentElement.setAttribute('data-theme', theme); + localStorage.setItem('theme', theme); - refreshThemeStyles(); // ✅ ADD THIS LINE + if(theme === 'dark') { + if(themeText) themeText.textContent = 'Light'; + if(moonIcon) moonIcon.style.display = 'none'; + if(sunIcon) sunIcon.style.display = 'inline-block'; + } else { + if(themeText) themeText.textContent = 'Dark'; + if (moonIcon) moonIcon.style.display = 'inline-block'; + if (sunIcon) sunIcon.style.display = 'none'; + } };