mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
refreshing protected session when loading and saving protected notes
This commit is contained in:
@@ -133,6 +133,12 @@ const protected_session = (function() {
|
||||
noteEditor.setNoteBackgroundIfProtected(note);
|
||||
}
|
||||
|
||||
function touchProtectedSession() {
|
||||
if (isProtectedSessionAvailable()) {
|
||||
lastProtectedSessionOperationDate = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
passwordFormEl.submit(() => {
|
||||
setupProtectedSession();
|
||||
|
||||
@@ -152,6 +158,7 @@ const protected_session = (function() {
|
||||
isProtectedSessionAvailable,
|
||||
protectNoteAndSendToServer,
|
||||
unprotectNoteAndSendToServer,
|
||||
getProtectedSessionId
|
||||
getProtectedSessionId,
|
||||
touchProtectedSession
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user