mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 00:36:33 +01:00
server side encryption WIP
This commit is contained in:
@@ -23,14 +23,12 @@ const noteTree = (function() {
|
||||
for (const note of notes) {
|
||||
glob.allNoteIds.push(note.note_id);
|
||||
|
||||
if (note.encryption > 0) {
|
||||
note.title = "[encrypted]";
|
||||
note.title = note.note_title;
|
||||
|
||||
if (note.encryption > 0) {
|
||||
note.extraClasses = "encrypted";
|
||||
}
|
||||
else {
|
||||
note.title = note.note_title;
|
||||
|
||||
if (note.is_clone) {
|
||||
note.title += " (clone)";
|
||||
}
|
||||
@@ -202,11 +200,6 @@ const noteTree = (function() {
|
||||
startNoteId = resp.start_note_id;
|
||||
treeLoadTime = resp.tree_load_time;
|
||||
|
||||
// add browser ID header to all AJAX requests
|
||||
$.ajaxSetup({
|
||||
headers: { 'x-browser-id': resp.browser_id }
|
||||
});
|
||||
|
||||
if (document.location.hash) {
|
||||
startNoteId = document.location.hash.substr(1); // strip initial #
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user