mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix unloading protected session after clicking on a button, closes #1078
This commit is contained in:
parent
3c5db844ba
commit
9de7d3fc53
@ -10,7 +10,7 @@ let protectedSessionDeferred = null;
|
|||||||
|
|
||||||
async function leaveProtectedSession() {
|
async function leaveProtectedSession() {
|
||||||
if (protectedSessionHolder.isProtectedSessionAvailable()) {
|
if (protectedSessionHolder.isProtectedSessionAvailable()) {
|
||||||
utils.reloadApp();
|
protectedSessionHolder.resetProtectedSession();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,4 +113,4 @@ export default {
|
|||||||
enterProtectedSession,
|
enterProtectedSession,
|
||||||
leaveProtectedSession,
|
leaveProtectedSession,
|
||||||
setupProtectedSession
|
setupProtectedSession
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user