mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
note history decryption now works, more cleanup
This commit is contained in:
@@ -55,16 +55,8 @@ const noteHistory = (function() {
|
||||
|
||||
const historyItem = historyItems.find(r => r.note_history_id === optVal);
|
||||
|
||||
let noteTitle = historyItem.note_title;
|
||||
let noteText = historyItem.note_text;
|
||||
|
||||
if (historyItem.is_protected) {
|
||||
noteTitle = encryption.decryptString(noteTitle);
|
||||
noteText = encryption.decryptString(noteText);
|
||||
}
|
||||
|
||||
titleEl.html(noteTitle);
|
||||
contentEl.html(noteText);
|
||||
titleEl.html(historyItem.note_title);
|
||||
contentEl.html(historyItem.note_text);
|
||||
});
|
||||
|
||||
$(document).on('click', "a[action='note-history']", event => {
|
||||
|
||||
Reference in New Issue
Block a user