mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
support encryption for files, closes #60
This commit is contained in:
@@ -329,7 +329,8 @@ const noteEditor = (function() {
|
||||
const url = new URL(window.location.href);
|
||||
const host = url.protocol + "//" + url.hostname + ":" + url.port;
|
||||
|
||||
const downloadUrl = "/api/attachments/download/" + getCurrentNoteId();
|
||||
const downloadUrl = "/api/attachments/download/" + getCurrentNoteId()
|
||||
+ "?protectedSessionId=" + encodeURIComponent(protected_session.getProtectedSessionId());
|
||||
|
||||
return host + downloadUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user