mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
refactored note attachment into note ancillary
This commit is contained in:
@@ -78,9 +78,9 @@ export default class MermaidWidget extends NoteContextAwareWidget {
|
||||
this.$display.html(renderedSvg);
|
||||
|
||||
// not awaiting intentionally
|
||||
// this is pretty hacky since we update attachment on render
|
||||
// this is pretty hacky since we update ancillary on render
|
||||
// but if nothing changed this should not trigger DB write and sync
|
||||
server.put(`notes/${note.noteId}/attachments/mermaidSvg`, {
|
||||
server.put(`notes/${note.noteId}/ancillaries/mermaidSvg`, {
|
||||
mime: 'image/svg+xml',
|
||||
content: renderedSvg
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user