fix js
This commit is contained in:
parent
018e7cc082
commit
f88085e089
@ -199,7 +199,7 @@ const body = document.body;
|
||||
|
||||
// Apply saved theme on load
|
||||
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') {
|
||||
body.classList.add('dark-mode');
|
||||
|
Loading…
Reference in New Issue
Block a user