From b938dd0578e6751d7465540d6b09401cde01ee89 Mon Sep 17 00:00:00 2001 From: not-nullptr <62841684+not-nullptr@users.noreply.github.com> Date: Sat, 22 Feb 2025 20:30:43 +0000 Subject: [PATCH] fix: vertd not working until you go to settings --- src/routes/+layout.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index c8af493..d217c84 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -14,6 +14,7 @@ effects, theme, dropping, + vertdLoaded, } from "$lib/store/index.svelte"; import "../app.scss"; @@ -60,6 +61,12 @@ ); Settings.instance.load(); + + fetch(`${Settings.instance.settings.vertdURL}/api/version`).then( + (res) => { + if (res.ok) $vertdLoaded = true; + }, + ); }); $effect(() => {