store the active theme
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user