allow localhost connections for update service in CSP

This commit is contained in:
2026-09-26 12:07:52 -07:00
parent c416f17e81
commit 76296cc7c2
3 changed files with 8 additions and 4 deletions

View File

@@ -605,7 +605,10 @@ void main() {
btnYes.addEventListener("click", () => {
if (actionsEl) actionsEl.style.display = "none";
setStatus("Starting update installation...");
fetch("http://127.0.0.1:4891/update/yes", { method: "POST" }).catch(() => { });
fetch("http://127.0.0.1:4891/update/yes", { method: "POST" }).catch((err) => {
setStatus("Failed to reach update service. Retrying...", "#fca5a5");
showDebug(err.message);
});
});
btnNo.addEventListener("click", () => {