mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(web): upgrade old style theme preference (#12775)
This commit is contained in:
parent
0ceb773865
commit
65dcf9b655
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
theme = { value: 'light', system: true };
|
theme = { value: 'light', system: true };
|
||||||
} else if (theme === 'dark' || theme === 'light') {
|
} else if (theme === 'dark' || theme === 'light') {
|
||||||
theme = { value: item, system: false };
|
theme = { value: theme, system: false };
|
||||||
localStorage.setItem(colorThemeKeyName, JSON.stringify(theme));
|
localStorage.setItem(colorThemeKeyName, JSON.stringify(theme));
|
||||||
} else {
|
} else {
|
||||||
theme = JSON.parse(theme);
|
theme = JSON.parse(theme);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue