Fix header encoding
All checks were successful
Deploy / deploy (push) Successful in 7s

This commit is contained in:
informaticker 2024-11-04 23:39:56 +01:00
parent 7a63da4cfc
commit 38c48f3141

View File

@ -75,7 +75,10 @@ function updateClientInfo() {
.then((response) => {
const clientInfo = response.headers.get("X-Client-Info");
if (clientInfo) {
document.querySelector(".location").textContent = clientInfo;
// i hate http why does it do this
// this is a hack to fix the weird  character that shows up
const correctedInfo = clientInfo.replace(/Â?µs/g, "µs");
document.querySelector(".location").textContent = correctedInfo;
}
})
.catch((error) => {