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

View File

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