Re-added previous share button selector to keep compatibility
authorMarcel Werk <burntime@woltlab.com>
Wed, 28 Jul 2021 15:48:49 +0000 (17:48 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 28 Jul 2021 15:48:49 +0000 (17:48 +0200)
ts/WoltLabSuite/Core/Ui/Message/Share/Dialog.ts

index a923db61142de7af3a1133ffd973994a557192e9..6a22e4688d88a72f3dc791f4b3c748a457f3e16a 100644 (file)
@@ -189,7 +189,7 @@ function openDialog(event: MouseEvent): void {
 }
 
 function registerButtons(): void {
-  document.querySelectorAll("a.wsShareButton").forEach((shareButton: HTMLElement) => {
+  document.querySelectorAll("a.shareButton,a.wsShareButton").forEach((shareButton: HTMLElement) => {
     if (!shareButtons.has(shareButton)) {
       shareButton.addEventListener("click", (ev) => openDialog(ev));