mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
fix invite links with URL base
This commit is contained in:
@@ -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, '-');
|
||||
|
||||
Reference in New Issue
Block a user