mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 09:28:45 +02:00
fix unloading protected session after the timeout, fixes #571
This commit is contained in:
parent
5372f71faa
commit
a7cf3cdf05
@ -43,6 +43,7 @@ async function setupProtectedSession(password) {
|
||||
}
|
||||
|
||||
protectedSessionHolder.setProtectedSessionId(response.protectedSessionId);
|
||||
protectedSessionHolder.touchProtectedSession();
|
||||
|
||||
await treeService.reload();
|
||||
|
||||
|
@ -37,6 +37,8 @@ function isProtectedSessionAvailable() {
|
||||
|
||||
function touchProtectedSession() {
|
||||
if (isProtectedSessionAvailable()) {
|
||||
lastProtectedSessionOperationDate = new Date();
|
||||
|
||||
setProtectedSessionId(utils.getCookie(PROTECTED_SESSION_ID_KEY));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user