mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
discord: hide "Join Server" text when invite not provided
This commit is contained in:
parent
dc3f1661e8
commit
fca370b9d9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user