mirror of https://github.com/VERT-sh/VERT.git
fix: vertd not working until you go to settings
This commit is contained in:
parent
96329c6d96
commit
b938dd0578
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue