From 38c48f3141a8e6d0811b83ad80e86bdfc291c993 Mon Sep 17 00:00:00 2001 From: informaticker Date: Mon, 4 Nov 2024 23:39:56 +0100 Subject: [PATCH] Fix header encoding --- assets/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/index.js b/assets/index.js index d8e1a51..e04d494 100644 --- a/assets/index.js +++ b/assets/index.js @@ -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) => {