feat(backend): fixed build errors regarding token in headers

This commit is contained in:
ribardej
2025-10-15 15:21:10 +02:00
parent 3a7580c315
commit 1f5d6f127f
2 changed files with 20 additions and 9 deletions

View File

@@ -5,7 +5,6 @@ const THEME_KEY = 'app_theme';
const FONT_KEY = 'app_font_size';
export function applyTheme(theme: Theme) {
const root = document.documentElement;
const body = document.body;
const effective = theme === 'system' ? (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme;
body.setAttribute('data-theme', effective);