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