discord: hide "Join Server" text when invite not provided
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user