fix invite page bugs
This commit is contained in:
@@ -42,7 +42,7 @@ import { getBulkUsers, Specialuser } from "./utils/utils.js";
|
||||
}
|
||||
await I18n.done;
|
||||
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];
|
||||
|
@@ -68,7 +68,7 @@ function toPath(url:string):string{
|
||||
const path=Url.pathname;
|
||||
if(path.startsWith("/channels")){
|
||||
html="./index.html"
|
||||
}else if(path.startsWith("/invite")){
|
||||
}else if(path.startsWith("/invite/")){
|
||||
html="./invite.html"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user