⛹️‍♂️ Simplifies layout handling

This commit is contained in:
Rune Harlyk
2024-08-18 13:00:21 +02:00
committed by Rune Harlyk
parent 00c56a2d68
commit 296adfee51
13 changed files with 142 additions and 166 deletions
+3 -6
View File
@@ -1,14 +1,11 @@
<script lang="ts">
import { user } from '$lib/stores/user';
import { onDestroy } from 'svelte';
import { location } from '$lib/utilities';
const ws_token = `?access_token=${$user.bearer_token}`
let source = `//${location}/api/camera/stream?access_token=${$user.bearer_token}`;
let source = "/api/camera/stream"+ ws_token;
onDestroy(() => {
source = '#';
});
onDestroy(() => (source = '#'));
</script>
<div class="w-full h-full">