From 8d2a86243feaf783907cb97dbd602697aaa52fa7 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Tue, 16 Jun 2026 23:37:27 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Carlos Fernandez --- module/applications/ui/countdowns.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/applications/ui/countdowns.mjs b/module/applications/ui/countdowns.mjs index fab03a92..d559582f 100644 --- a/module/applications/ui/countdowns.mjs +++ b/module/applications/ui/countdowns.mjs @@ -106,7 +106,7 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application }; 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) .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}"]`); - element.animate(pulseAnimation, pulseTiming); + element?.animate(pulseAnimation, pulseTiming); } this.changedCountdownsForAnimation.clear();