refactor: improve navigation and settings locks

This commit is contained in:
Carlos Valente
2025-08-11 06:35:54 +02:00
committed by Carlos Valente
parent 836fa52757
commit efceb930e5
8 changed files with 49 additions and 37 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ function resolveBaseURI(): string {
* Resolves a session scope for the session
*/
export const sessionScope = resolveSessionScope();
export const getIsViewLocked = () => window.location.search.includes('n=1');
export const getIsNavigationLocked = () => new URLSearchParams(window.location.search).get('n') === '1';
/**
* The session scope is read from the cookie and will only exist if the app is password protected