invites: use string getting func on CopyButton

should fix #449.
This commit is contained in:
Harvey Tindall
2025-12-07 11:40:16 +00:00
committed by GitHub
parent fb5ea43ef5
commit 709c394d2d

View File

@@ -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);