From a435997a3d93bddc7b1a8f26a52d982441250e9e Mon Sep 17 00:00:00 2001 From: type-two Date: Wed, 29 Jul 2026 14:35:32 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20hide=20SOLARGOD=20portal=20link=20off-lo?= =?UTF-8?q?calhost=20=E2=80=94=20it=20targets=20a=20dev=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The deep-link keeps working in local dev; on partly.party it would be a dead localhost button until SOLARGOD has a public home. Co-Authored-By: Claude Fable 5 --- js/ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui.js b/js/ui.js index a3e2d70..8a3f382 100644 --- a/js/ui.js +++ b/js/ui.js @@ -121,6 +121,11 @@ export function setLiveChip(isLive) { export function wireSolargodLink(getMs) { const a = document.getElementById('solargod-link'); if (!a) return; + // SOLARGOD is a localhost dev server for now — showing that link on the live + // site would be a dead button. Hide it unless GODSIGH itself is on localhost; + // when SOLARGOD gets a public home, point this at it and drop the guard. + const local = /^(127\.0\.0\.1|localhost)$/.test(location.hostname); + if (!local) { a.style.display = 'none'; return; } const sync = () => { a.href = `http://127.0.0.1:8147/#t=@${getMs()}`; }; a.addEventListener('pointerdown', sync); a.addEventListener('click', sync);