connect to server on client startup
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
let serverAddress = 'http://127.0.0.1:8787';
|
let serverAddress = 'http://127.0.0.1:8787';
|
||||||
let connectionState = 'OFFLINE';
|
let connectionState = 'OFFLINE';
|
||||||
let serverVersion = '—';
|
let serverVersion = '—';
|
||||||
@@ -843,6 +845,10 @@
|
|||||||
oauthError = 'Copy was unavailable. Select and copy the link manually.';
|
oauthError = 'Copy was unavailable. Select and copy the link manually.';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
void checkServer();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head><title>Trixie</title></svelte:head>
|
<svelte:head><title>Trixie</title></svelte:head>
|
||||||
|
|||||||
Reference in New Issue
Block a user