fix invite page bugs

This commit is contained in:
MathMan05 2024-12-11 21:44:50 -06:00
parent a0e4888806
commit ac0901aa1c
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ import { getBulkUsers, Specialuser } from "./utils/utils.js";
} }
await I18n.done; await I18n.done;
if(!joinable.length){ if(!joinable.length){
document.getElementById("AcceptInvite")!.textContent = I18n.getTranslation("noAccount"); document.getElementById("AcceptInvite")!.textContent = I18n.getTranslation("htmlPages.noAccount");
} }
const code = window.location.pathname.split("/")[2]; const code = window.location.pathname.split("/")[2];

View file

@ -68,7 +68,7 @@ function toPath(url:string):string{
const path=Url.pathname; const path=Url.pathname;
if(path.startsWith("/channels")){ if(path.startsWith("/channels")){
html="./index.html" html="./index.html"
}else if(path.startsWith("/invite")){ }else if(path.startsWith("/invite/")){
html="./invite.html" html="./invite.html"
} }
} }