diff --git a/ts/modules/account-linking.ts b/ts/modules/account-linking.ts index bdc92be..301c3cb 100644 --- a/ts/modules/account-linking.ts +++ b/ts/modules/account-linking.ts @@ -162,6 +162,8 @@ export class Discord extends ServiceLinker { onclick() { if (this._conf.inviteURL != "") { this._getInviteURL(); + } else { + (document.getElementById("discord-invite") as HTMLSpanElement).parentElement.remove(); } super.onclick();