Revert "fix(app): more startup efficiency (#18985)"

This reverts commit 98b3340cee.
This commit is contained in:
Adam
2026-03-24 18:36:25 -05:00
parent 50f6aa3763
commit cbe1337f24
8 changed files with 128 additions and 240 deletions

View File

@@ -118,11 +118,8 @@ export const { use: useSettings, provider: SettingsProvider } = createSimpleCont
createEffect(() => {
if (typeof document === "undefined") return
const id = store.appearance?.font ?? defaultSettings.appearance.font
if (id !== defaultSettings.appearance.font) {
void loadFont().then((x) => x.ensureMonoFont(id))
}
document.documentElement.style.setProperty("--font-family-mono", monoFontFamily(id))
void loadFont().then((x) => x.ensureMonoFont(store.appearance?.font))
document.documentElement.style.setProperty("--font-family-mono", monoFontFamily(store.appearance?.font))
})
return {