Fix NOC fetch URL for both domains, remove .claude

This commit is contained in:
2026-05-02 20:53:58 -05:00
parent 6420c21d6a
commit d49a0d73a3
+6 -1
View File
@@ -35,7 +35,12 @@ async function loadNocStatus() {
try {
// Cache-bust to always get fresh data
const res = await fetch(`data/noc-status.json?t=${Date.now()}`);
// Use absolute URL when on NOC subdomain, relative when on main portfolio
const nocDataUrl = window.location.hostname === 'noc.chasedumphord.com'
? `https://chasedumphord.com/data/noc-status.json?t=${Date.now()}`
: `data/noc-status.json?t=${Date.now()}`;
const res = await fetch(nocDataUrl);
if (!res.ok) throw new Error(`HTTP ${res.status}`);