fix invite page bugs
This commit is contained in:
@@ -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];
|
||||||
|
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user