Incorrect usage of `Element.classList.add()`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 7 Apr 2022 14:18:54 +0000 (16:18 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 7 Apr 2022 14:18:54 +0000 (16:18 +0200)
files/js/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.js
ts/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.ts

index f637c176e3250863ddb2490cc4b26329dc9f6fc2..e40f0eef58b9e5833f8bf2f38abc1e0188472a09 100644 (file)
@@ -106,7 +106,7 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Ajax", "WoltLabSuite/C
             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) {
index 3de6c5f0ef022009def3d5421f43a932cb9e5ce6..b36e2870b288c211cf6856d5536502f1a2e08edc 100644 (file)
@@ -159,7 +159,7 @@ class UserMenuDataConversation implements UserMenuProvider {
     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);
     }