{errorMessage}
- {:else} -{errorMessage}
{:else} - +Your display is too small to view this data
Try rotating your device
-ID | From | diff --git a/src/lib/navigation/TimeBar.svelte b/src/lib/navigation/TimeBar.svelte index 5753386..3b795f9 100644 --- a/src/lib/navigation/TimeBar.svelte +++ b/src/lib/navigation/TimeBar.svelte @@ -4,29 +4,29 @@ export let updatedTime: Date | undefined; -let currentTime: string = "00:00:00" -let updateDisplay: string; -function updateTime() { - const now = new Date(); - const hours = now.getHours().toString().padStart(2, '0'); - const mins = now.getMinutes().toString().padStart(2, '0'); - const secs = now.getSeconds().toString().padStart(2, '0'); - currentTime = `${hours}:${mins}:${secs}` -} + let currentTime: string = "00:00:00"; + let updateDisplay: string; + function updateTime() { + const now = new Date(); + const hours = now.getHours().toString().padStart(2, "0"); + const mins = now.getMinutes().toString().padStart(2, "0"); + const secs = now.getSeconds().toString().padStart(2, "0"); + currentTime = `${hours}:${mins}:${secs}`; + } -onMount(() => { - console.log("TimeBar component mounted") - updateTime(); - const interval = setInterval(updateTime, 250); - return () => clearInterval(interval); -}) + onMount(() => { + console.log("TimeBar component mounted"); + updateTime(); + const interval = setInterval(updateTime, 250); + return () => clearInterval(interval); + });
---|