store the active theme

This commit is contained in:
Sven Czarnian
2022-11-05 01:25:41 +01:00
parent c9546cb29a
commit c3f36bae01

View File

@@ -10,4 +10,12 @@ export class Session {
static bearerToken(): string | null { static bearerToken(): string | null {
return localStorage.getItem('token'); return localStorage.getItem('token');
} }
static setTheme(theme: string) {
localStorage.setItem('theme', theme);
}
static theme(): string | null {
return localStorage.getItem('theme');
}
} }