mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Fix an issue for first time running theme code, theme will not be available (#1081)
This commit is contained in:
parent
61130b0a69
commit
ac9ac00163
@ -79,7 +79,7 @@ export class AccountService implements OnDestroy {
|
|||||||
|
|
||||||
localStorage.setItem(this.userKey, JSON.stringify(user));
|
localStorage.setItem(this.userKey, JSON.stringify(user));
|
||||||
localStorage.setItem(this.lastLoginKey, user.username);
|
localStorage.setItem(this.lastLoginKey, user.username);
|
||||||
if (user.preferences) {
|
if (user.preferences && user.preferences.theme) {
|
||||||
this.themeService.setTheme(user.preferences.theme.name);
|
this.themeService.setTheme(user.preferences.theme.name);
|
||||||
} else {
|
} else {
|
||||||
this.themeService.setTheme(this.themeService.defaultTheme);
|
this.themeService.setTheme(this.themeService.defaultTheme);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user