connect to server on client startup

This commit is contained in:
2026-10-25 05:34:55 +01:00
parent 950db9eb8c
commit 000af8bfb1
+6
View File
@@ -1,4 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
let serverAddress = 'http://127.0.0.1:8787';
let connectionState = 'OFFLINE';
let serverVersion = '—';
@@ -843,6 +845,10 @@
oauthError = 'Copy was unavailable. Select and copy the link manually.';
});
}
onMount(() => {
void checkServer();
});
</script>
<svelte:head><title>Trixie</title></svelte:head>