error handling

This commit is contained in:
zadam
2021-02-22 21:59:37 +01:00
parent ddf8438b22
commit 208baa56e9
2 changed files with 13 additions and 1 deletions

View File

@@ -193,6 +193,10 @@ function getNoteTypeClass(type) {
}
function getMimeTypeClass(mime) {
if (!mime) {
return "";
}
const semicolonIdx = mime.indexOf(';');
if (semicolonIdx !== -1) {