mirror of
https://github.com/immich-app/immich.git
synced 2025-02-05 18:36:34 +02:00
fix(web): upgrade old style theme preference (#12775)
This commit is contained in:
parent
0ceb773865
commit
65dcf9b655
@ -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…
x
Reference in New Issue
Block a user