mirror of
https://github.com/ced4568/ced-portfolio.git
synced 2026-08-12 22:34:03 +00:00
Fix NOC fetch URL for both domains, remove .claude
This commit is contained in:
@@ -35,7 +35,12 @@ async function loadNocStatus() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Cache-bust to always get fresh data
|
// 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}`);
|
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user