fix the failures that were failing quietly

This commit is contained in:
2026-09-21 06:22:44 +03:00
parent 371c910068
commit b33ce5bf77
8 changed files with 110 additions and 35 deletions
+4 -1
View File
@@ -20,7 +20,10 @@
})
function dismiss() { info = null; errMsg = null; phase = "info" }
function viewRelease() { if (info) void api.openUrl(info.release_url) }
function viewRelease() {
if (!info) return
void api.openUrl(info.release_url).catch(e => { errMsg = String(e); phase = "error" })
}
async function download() {
if (!info?.download_url) { errMsg = "no downloadable exe in this release"; phase = "error"; return }