web/DownloadButton: fallback if status isn't supported

This commit is contained in:
wukko 2024-07-21 22:49:26 +06:00
parent 9b4f593f87
commit f93f3cd558
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -118,6 +118,14 @@
})
}
}
changeDownloadButton("error");
restoreDownloadButton();
return createDialog({
...defaultErrorPopup as DialogInfo,
bodyText: "unknown/unsupported status"
})
};
</script>