🎨 Fix different typing problems

This commit is contained in:
Rune Harlyk
2025-10-14 20:01:20 +02:00
parent 0aab42f0e9
commit 8970457353
11 changed files with 37 additions and 46 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
<script lang="ts">
import SettingsCard from '$lib/components/SettingsCard.svelte'
import { WiFi } from '$lib/components/icons'
import { location, socket } from '$lib/stores'
import { apiLocation, socket } from '$lib/stores'
const update = () => {
const ws = $location ? $location : window.location.host
const ws = $apiLocation ? $apiLocation : window.location.host
socket.init(`ws://${ws}/api/ws/events`)
}
</script>
@@ -19,7 +19,7 @@
<div class="flex">
<label class="label w-32" for="server">Address:</label>
<input class="input" bind:value={$location} />
<input class="input" bind:value={$apiLocation} />
</div>
<button class="btn btn-primary" onclick={update}>Update</button>