store the active theme

This commit is contained in:
Sven Czarnian committed 2022-11-05 01:25:41 +01:00
1 parent c9546cb29a
commit c3f36bae01
1 file changed
+8
+8
View File
@@ -10,4 +10,12 @@ export class Session {
static bearerToken(): string | null {
return localStorage.getItem('token');
}
static setTheme(theme: string) {
localStorage.setItem('theme', theme);
}
static theme(): string | null {
return localStorage.getItem('theme');
}
}