From 709c394d2d9ab69d871f9bad999fec0bef3fb054 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 7 Dec 2025 11:40:16 +0000 Subject: [PATCH] invites: use string getting func on CopyButton should fix #449. --- ts/modules/invites.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/modules/invites.ts b/ts/modules/invites.ts index 9d06296..df607b5 100644 --- a/ts/modules/invites.ts +++ b/ts/modules/invites.ts @@ -508,7 +508,7 @@ class DOMInvite implements Invite { this._linkEl = this._linkContainer.getElementsByClassName("invite-link")[0] as HTMLAnchorElement; const copyButton = this._codeArea.getElementsByClassName("invite-copy-button")[0] as HTMLButtonElement; - SetupCopyButton(copyButton, this._codeLink); + SetupCopyButton(copyButton, () => { return this._codeLink; }); this._infoArea = document.createElement('div') as HTMLDivElement; this._header.appendChild(this._infoArea);