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

pull/298/head
Harvey Tindall 1 year ago
parent dc3f1661e8
commit fca370b9d9
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -162,6 +162,8 @@ export class Discord extends ServiceLinker {
onclick() { onclick() {
if (this._conf.inviteURL != "") { if (this._conf.inviteURL != "") {
this._getInviteURL(); this._getInviteURL();
} else {
(document.getElementById("discord-invite") as HTMLSpanElement).parentElement.remove();
} }
super.onclick(); super.onclick();

Loading…
Cancel
Save