refactoring/cleanup

This commit is contained in:
zadam
2019-05-21 20:24:40 +02:00
parent ff5ea8b311
commit 3fe9218ea8
8 changed files with 47 additions and 63 deletions

View File

@@ -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() {}