Bring debug.js back (I don't remember killing it)

This commit is contained in:
jheaps
2025-09-19 16:09:47 -06:00
parent be0a753945
commit 10bf9b3d30
+16
View File
@@ -0,0 +1,16 @@
document.addEventListener('DOMContentLoaded', () => {
getIpStatus();
});
async function getIpStatus() {
try {
const res = await fetch(`/api/debug/IpCheck`);
if (!res.ok) throw new Error("API failed");
const text = await res.text();
console.log(text);
document.querySelector('#IsIpChecking').textContent = text;
} catch (err) {
console.error("Error in api:", err);
}
}