js bug fix

This commit is contained in:
Hamid Reza Mohammadi 2023-11-28 14:20:46 +03:30
parent a28da4fe80
commit 6001ca0ba3

View File

@ -1200,6 +1200,7 @@ function applyPreferredColorScheme(scheme) {
document.getElementById("icon-sun").style.display = 'inline';
document.getElementById("icon-moon").style.display = 'none';
} else {
if (document.getElementById("icon-sun") != null) {
document.getElementById("icon-moon").style.display = 'inline';
document.getElementById("icon-sun").style.display = 'none';
}