Add config
This commit is contained in:
parent
2f91fe8572
commit
dd3343184d
3 changed files with 15 additions and 2 deletions
10
src/lib/config.ts
Normal file
10
src/lib/config.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import {
|
||||
PUBLIC_RELAY_URL,
|
||||
PUBLIC_GROUP_ID,
|
||||
PUBLIC_MODE,
|
||||
} from "$env/static/public";
|
||||
|
||||
export const RELAY_URL = PUBLIC_RELAY_URL;
|
||||
export const GROUP_ID = PUBLIC_GROUP_ID;
|
||||
export const MODE: "simple" | "full" =
|
||||
PUBLIC_MODE === "full" ? "full" : "simple";
|
||||
|
|
@ -7,11 +7,11 @@
|
|||
import { page } from "$app/state";
|
||||
import { onMount } from "svelte";
|
||||
import { restoreSession } from "$lib/auth.svelte";
|
||||
import { MODE } from "$lib/config";
|
||||
|
||||
let { children } = $props();
|
||||
|
||||
// In full mode, extract active room from the URL
|
||||
const mode: "simple" | "full" = "full";
|
||||
const mode = MODE;
|
||||
const chatEnabled = true;
|
||||
|
||||
onMount(restoreSession);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue