mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
refactoring/cleanup
This commit is contained in:
@@ -65,7 +65,7 @@ class NoteDetailImage {
|
||||
|
||||
getFileUrl() {
|
||||
// electron needs absolute URL so we extract current host, port, protocol
|
||||
return utils.getHost() + "/api/notes/" + noteDetailService.getActiveNoteId() + "/download";
|
||||
return utils.getHost() + `/api/notes/${this.ctx.note.noteId}/download`;
|
||||
}
|
||||
|
||||
getContent() {}
|
||||
|
||||
Reference in New Issue
Block a user