fix invite links with URL base

pull/61/head
Harvey Tindall 4 years ago
parent 6691ae27f4
commit 2c8be42bbc
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

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

Loading…
Cancel
Save