diff --git a/homepage/index.js b/homepage/index.js index 291d41f..b7d1231 100644 --- a/homepage/index.js +++ b/homepage/index.js @@ -33,9 +33,13 @@ const articles_meta = { }; async function getProcesses() { - let reimu = await fetch("http://reimu.arav.home:14882/processes").then(r => r.json()); - let sakuya = await fetch("http://sakuya.arav.home:14882/processes").then(r => r.json()); - return Object.fromEntries(Object.entries(reimu).concat(Object.entries(sakuya))); + try { + let reimu = await fetch("http://reimu.arav.home.arpa:14882/processes").then(r => r.json()); + let sakuya = await fetch("http://sakuya.arav.home.arpa:14882/processes").then(r => r.json()); + return Object.fromEntries(Object.entries(reimu).concat(Object.entries(sakuya))); + } catch { + return []; + } } function setRoutes() {