1
0
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:
Harvey Tindall 2023-09-07 21:40:44 +01:00
parent dc3f1661e8
commit fca370b9d9
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -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();