1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00

fix broken invite links

This commit is contained in:
Harvey Tindall 2021-02-11 13:49:06 +00:00
parent 192c9a4764
commit 91d3d2596e
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -45,7 +45,7 @@ export class DOMInvite implements Invite {
for (let split of ["#", "?"]) {
codeLink = codeLink.split(split)[0];
}
if (codeLink.slice(0, -1) != "/") { codeLink += "/"; }
if (codeLink.slice(-1) != "/") { codeLink += "/"; }
this._codeLink = codeLink + "invite/" + code;
const linkEl = this._codeArea.querySelector("a") as HTMLAnchorElement;
if (this.label == "") {