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);