From 31e50d0e14193ba545629339fca13b8e89615122 Mon Sep 17 00:00:00 2001 From: marvin Date: Wed, 16 Sep 2026 12:26:10 -0400 Subject: [PATCH] Fix blank page caused by unguarded download-support listener (v0.11.110) --- package.json | 2 +- src/public/app.js | 2 +- src/public/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a40f9f9..6cf62a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "site-gateway", - "version": "0.11.109", + "version": "0.11.110", "private": true, "description": "Site Gateway: simple self-hosted website publishing, reverse proxying, and automatic HTTPS.", "type": "module", diff --git a/src/public/app.js b/src/public/app.js index 3810744..912e5e5 100644 --- a/src/public/app.js +++ b/src/public/app.js @@ -500,7 +500,7 @@ $("#logout").addEventListener("click", async () => { await fetch("/api/logout", // --- Dashboard actions: run certificate check, download support report, jump to // an attention item's view ------------------------------------------------------------- $("#check-health").addEventListener("click", async event => { const button = event.currentTarget; button.disabled = true; button.textContent = "Checking…"; try { const result = await api("/api/health/check", { method:"POST" }); state.dashboard = result.dashboard; state.certificates = result.certificates; state.readiness = { routes:result.readiness }; renderCertificates(); toast("Certificate and domain checks completed."); } catch (error) { toast(error.message); } finally { button.disabled = false; button.textContent = "Run certificate check"; } }); -$("#download-support").addEventListener("click", () => { location.href = "/api/support-report"; }); +$("#download-support")?.addEventListener("click", () => { location.href = "/api/support-report"; }); $("#attention-list").addEventListener("click", event => { const target = event.target.closest("[data-issue-target]")?.dataset.issueTarget; if (target) { state.view = target; render(); loadFeatureView().catch(error => toast(error.message)); } }); // --- Primary navigation (sidebar view switching) ------------------------------------------- diff --git a/src/public/index.html b/src/public/index.html index e1d997c..81c9a98 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -430,6 +430,6 @@
- +