client: Fix rendering notes if hljs is not loaded

This commit is contained in:
Elian Doran
2024-11-08 21:50:22 +02:00
parent 2048a30aa5
commit 29e83b97e6
2 changed files with 7 additions and 4 deletions

View File

@@ -371,7 +371,8 @@ class NoteListRenderer {
$content.append($renderedContent);
$content.addClass(`type-${type}`);
} catch (e) {
console.log(`Caught error while rendering note '${note.noteId}' of type '${note.type}': ${e.message}, stack: ${e.stack}`);
console.warn(`Caught error while rendering note '${note.noteId}' of type '${note.type}'`);
console.error(e);
$content.append("rendering error");
}