mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
error handling
This commit is contained in:
@@ -193,6 +193,10 @@ function getNoteTypeClass(type) {
|
||||
}
|
||||
|
||||
function getMimeTypeClass(mime) {
|
||||
if (!mime) {
|
||||
return "";
|
||||
}
|
||||
|
||||
const semicolonIdx = mime.indexOf(';');
|
||||
|
||||
if (semicolonIdx !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user