only apply saved theme when dom content has loaded

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2024-10-18 15:56:39 +02:00
parent 0e960b8ca4
commit 9bf38d2795

View file

@ -22,5 +22,5 @@ function applySavedTheme() {
}
}
// Immediately apply the saved theme
applySavedTheme();
// Apply theme when the page loads
document.addEventListener('DOMContentLoaded', applySavedTheme);