fix(web): upgrade old style theme preference (#12775)

This commit is contained in:
Jason Rasmussen 2024-09-18 12:14:44 -04:00 committed by GitHub
parent 0ceb773865
commit 65dcf9b655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);