This commit is contained in:
Ehab Hassan 2025-05-25 16:52:17 +03:00
parent 018e7cc082
commit f88085e089

View File

@ -199,7 +199,7 @@ const body = document.body;
// Apply saved theme on load // Apply saved theme on load
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const savedTheme = localStorage.getItem('theme') || 'dark'; // Default is dark mode const savedTheme = localStorage.getItem('theme') || 'light'; // Default is light mode
if (savedTheme === 'dark') { if (savedTheme === 'dark') {
body.classList.add('dark-mode'); body.classList.add('dark-mode');