Skip to content

Build your personal knowledge base with Trilium Notes

fix unloading protected session after clicking on a button, closes #1078

zadam9de7d3fc5319
diff --git a/src/public/app/services/protected_session.js b/src/public/app/services/protected_session.js
index 29f6e4e9a5..46b83b5a30 100644
--- a/src/public/app/services/protected_session.js
+++ b/src/public/app/services/protected_session.js
@@ -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
-};
\ No newline at end of file
+};