mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +08:00
feat(export): use right extension for canvas
This commit is contained in:
parent
abddde910c
commit
ad8c1a4a29
@ -48,7 +48,11 @@ function exportSingleNote(taskContext: TaskContext, branch: BBranch, format: "ht
|
|||||||
payload = content;
|
payload = content;
|
||||||
extension = mimeTypes.extension(note.mime) || "code";
|
extension = mimeTypes.extension(note.mime) || "code";
|
||||||
mime = note.mime;
|
mime = note.mime;
|
||||||
} else if (note.type === "relationMap" || note.type === "canvas" || note.type === "search") {
|
} else if (note.type === "canvas") {
|
||||||
|
payload = content;
|
||||||
|
extension = "excalidraw";
|
||||||
|
mime = "application/json";
|
||||||
|
} else if (note.type === "relationMap" || note.type === "search") {
|
||||||
payload = content;
|
payload = content;
|
||||||
extension = "json";
|
extension = "json";
|
||||||
mime = "application/json";
|
mime = "application/json";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user