mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 05:13:32 +00:00
refactor: improve navigation and settings locks
This commit is contained in:
committed by
Carlos Valente
parent
836fa52757
commit
efceb930e5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user