discord: hide "Join Server" text when invite not provided

This commit is contained in:
Harvey Tindall 2023-09-07 21:40:44 +01:00
parent dc3f1661e8
commit fca370b9d9
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 2 additions and 0 deletions

View File

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