mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
web/DownloadButton: fallback if status isn't supported
This commit is contained in:
parent
9b4f593f87
commit
f93f3cd558
1 changed files with 8 additions and 0 deletions
|
@ -118,6 +118,14 @@
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
changeDownloadButton("error");
|
||||
restoreDownloadButton();
|
||||
|
||||
return createDialog({
|
||||
...defaultErrorPopup as DialogInfo,
|
||||
bodyText: "unknown/unsupported status"
|
||||
})
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue