index fixes

This commit is contained in:
MathMan05
2024-10-15 14:10:21 -05:00
parent 83116bad5c
commit 33db337a7a

View File

@@ -1789,16 +1789,8 @@ class Localuser{
this.pageTitle("Loading..."); this.pageTitle("Loading...");
} }
pageTitle(channelName = "", guildName = ""){ pageTitle(channelName = "", guildName = ""){
(document.getElementById("channelname") as HTMLSpanElement).textContent = (document.getElementById("channelname") as HTMLSpanElement).textContent = channelName;
channelName; (document.getElementsByTagName("title")[0] as HTMLTitleElement).textContent = channelName + (guildName ? " | " + guildName : "") + " | " + this.instancePing.name +" | Jank Client";
(
document.getElementsByTagName("title")[0] as HTMLTitleElement
).textContent =
channelName +
(guildName ? " | " + guildName : "") +
" | " +
this.instancePing.name +
" | Jank Client";
} }
async instanceStats(){ async instanceStats(){
const res = await fetch(this.info.api + "/policies/stats", { const res = await fetch(this.info.api + "/policies/stats", {