mirror of
https://github.com/mfactory-osaka/ESPTimeCast.git
synced 2026-02-19 11:54:56 -05:00
bug fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user