frontend: standardize theme key naming in ThemeService and index.html

This commit is contained in:
juancarmore 2025-08-14 16:58:35 +02:00
parent 1e1eaa7bf5
commit 1bf77ffde5
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export type Theme = 'light' | 'dark';
providedIn: 'root'
})
export class ThemeService {
private readonly THEME_KEY = 'ov-meet-theme';
private readonly THEME_KEY = 'ovMeet-theme';
private readonly _currentTheme = signal<Theme>('light');
// Computed signals for reactivity

View File

@ -14,7 +14,7 @@
<script>
// Apply the saved theme on initial load to prevent flickering
(function () {
const savedTheme = localStorage.getItem('ov-meet-theme') || 'light';
const savedTheme = localStorage.getItem('ovMeet-theme') || 'light';
if (savedTheme === 'dark') {
document.documentElement.setAttribute('data-theme', 'dark');
}