Changes ANONYMOUS variable

This variable will be use to mandatory login user in self hosted
This commit is contained in:
Gregoire Parant 2021-11-12 16:43:37 +01:00
parent ee4ec7ba97
commit fa233e13c6
7 changed files with 35 additions and 16 deletions

View file

@ -23,6 +23,7 @@ export const CONTACT_URL = process.env.CONTACT_URL || undefined;
export const PROFILE_URL = process.env.PROFILE_URL || undefined;
export const POSTHOG_API_KEY: string = (process.env.POSTHOG_API_KEY as string) || "";
export const POSTHOG_URL = process.env.POSTHOG_URL || undefined;
export const DISABLE_ANONYMOUS = process.env.DISABLE_ANONYMOUS || false;
export const isMobile = (): boolean => window.innerWidth <= 800 || window.innerHeight <= 600;