test: defer hangarLoaded to nuxtReady hook

This commit is contained in:
MiniDigger | Martin 2024-04-27 10:01:08 +02:00
parent e45e077533
commit 8edd10a024

View File

@ -18,7 +18,7 @@ if (process.client) {
document.documentElement.classList.remove("light", "dark");
document.documentElement.classList.add(settingsStore.darkMode ? "dark" : "light");
nextTick(() => (window.hangarLoaded = true));
onNuxtReady(() => (window.hangarLoaded = true));
}
useHead({