fixes for relative paths

This commit is contained in:
zadam
2019-02-22 23:03:20 +01:00
parent cf5ec44303
commit b25deea21d
7 changed files with 8 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ async function show() {
$fileSize.text((attributeMap.fileSize || "?") + " bytes");
$fileType.text(currentNote.mime);
$imageView.prop("src", `/api/images/${currentNote.noteId}/${currentNote.title}`);
$imageView.prop("src", `api/images/${currentNote.noteId}/${currentNote.title}`);
}
$imageDownloadButton.click(() => utils.download(getFileUrl()));