Skip to content

Commit 7e7971a

Browse files
authored
Merge branch 'master' into feat/1216-1531-upgrade-uuid
2 parents d00d0eb + 848660f commit 7e7971a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/web/waiters/OptionsWaiter.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ class OptionsWaiter {
175175
* Applies the user's preferred color scheme using the `prefers-color-scheme` media query.
176176
*/
177177
applyPreferredColorScheme() {
178-
const theme = this.getPreferredColorScheme();
178+
const themeFromStorage = this.app?.options?.theme;
179+
let theme = themeFromStorage;
180+
if (!theme) {
181+
theme = this.getPreferredColorScheme();
182+
}
179183
this.changeTheme(theme);
180184
}
181185

0 commit comments

Comments
 (0)