mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 18:39:55 +02:00
Apply suggestions from code review
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
parent
3641d328bf
commit
8d2a86243f
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue