mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00: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