bug fixes

This commit is contained in:
M-Factory
2025-07-16 23:35:07 +09:00
parent 915367ac8b
commit b33521b13e

View File

@@ -636,11 +636,7 @@ window.onload = function () {
document.getElementById('showDayOfWeek').checked = !!data.showDayOfWeek;
document.getElementById('showHumidity').checked = !!data.showHumidity;
document.getElementById('showWeatherDescription').checked = !!data.showWeatherDescription;
document.getElementById('showWeatherDescription').addEventListener('change', function() {
setShowWeatherDescription(this.checked);
});
// Dimming controls
// Dimming controls
const dimmingEnabledEl = document.getElementById('dimmingEnabled');
const isDimming = (data.dimmingEnabled === true || data.dimmingEnabled === "true" || data.dimmingEnabled === 1);
dimmingEnabledEl.checked = isDimming;