Apply suggestions from code review

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-06-16 23:37:27 +02:00 committed by GitHub
parent 3641d328bf
commit 8d2a86243f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,7 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application
}; };
const element = this.element.querySelector(`.countdown-container[data-countdown="${countdownKey}"]`); const element = this.element.querySelector(`.countdown-container[data-countdown="${countdownKey}"]`);
element.animate(shimmerAnimation, shimmerTiming); element?.animate(shimmerAnimation, shimmerTiming);
const countdown = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Countdowns) const countdown = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Countdowns)
.countdowns[countdownKey]; .countdowns[countdownKey];
@ -125,7 +125,7 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application
}; };
const element = this.element.querySelector(`.header-type-toggles .header-type[data-type="${type}"]`); const element = this.element.querySelector(`.header-type-toggles .header-type[data-type="${type}"]`);
element.animate(pulseAnimation, pulseTiming); element?.animate(pulseAnimation, pulseTiming);
} }
this.changedCountdownsForAnimation.clear(); this.changedCountdownsForAnimation.clear();