mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
fix unloading protected session after clicking on a button, closes #1078
This commit is contained in:
parent
3c5db844ba
commit
9de7d3fc53
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ let protectedSessionDeferred = null;
|
|||
|
||||
async function leaveProtectedSession() {
|
||||
if (protectedSessionHolder.isProtectedSessionAvailable()) {
|
||||
utils.reloadApp();
|
||||
protectedSessionHolder.resetProtectedSession();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -113,4 +113,4 @@ export default {
|
|||
enterProtectedSession,
|
||||
leaveProtectedSession,
|
||||
setupProtectedSession
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue