mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
feat(book/table): display attachment JSON
This commit is contained in:
parent
ccb9b7e5fb
commit
9c137a1c48
@ -301,7 +301,7 @@ function getRenderingType(entity: FNote | FAttachment) {
|
|||||||
|
|
||||||
if (type === "file" && mime === "application/pdf") {
|
if (type === "file" && mime === "application/pdf") {
|
||||||
type = "pdf";
|
type = "pdf";
|
||||||
} else if (type === "file" && mime && CODE_MIME_TYPES.has(mime)) {
|
} else if ((type === "file" || type === "viewConfig") && mime && CODE_MIME_TYPES.has(mime)) {
|
||||||
type = "code";
|
type = "code";
|
||||||
} else if (type === "file" && mime && mime.startsWith("audio/")) {
|
} else if (type === "file" && mime && mime.startsWith("audio/")) {
|
||||||
type = "audio";
|
type = "audio";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user