let badge = this.button.querySelector(".badge");
if (badge === null && counter > 0) {
badge = document.createElement("span");
- badge.classList.add("badge badgeUpdate");
+ badge.classList.add("badge", "badgeUpdate");
this.button.querySelector("a").append(badge);
}
if (badge) {
let badge = this.button.querySelector<HTMLElement>(".badge");
if (badge === null && counter > 0) {
badge = document.createElement("span");
- badge.classList.add("badge badgeUpdate");
+ badge.classList.add("badge", "badgeUpdate");
this.button.querySelector("a")!.append(badge);
}