fix: vertd not working until you go to settings

This commit is contained in:
not-nullptr 2025-02-22 20:30:43 +00:00
parent 96329c6d96
commit b938dd0578
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,7 @@
effects, effects,
theme, theme,
dropping, dropping,
vertdLoaded,
} from "$lib/store/index.svelte"; } from "$lib/store/index.svelte";
import "../app.scss"; import "../app.scss";
@ -60,6 +61,12 @@
); );
Settings.instance.load(); Settings.instance.load();
fetch(`${Settings.instance.settings.vertdURL}/api/version`).then(
(res) => {
if (res.ok) $vertdLoaded = true;
},
);
}); });
$effect(() => { $effect(() => {