2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-07 11:03:18 +00:00

Merge pull request #2006 from 0xh3xa/master

Bug Fix: selected theme not loading when refreshing
This commit is contained in:
a3957273
2025-04-03 19:15:02 +01:00
committed by GitHub

View File

@@ -175,7 +175,11 @@ class OptionsWaiter {
* Applies the user's preferred color scheme using the `prefers-color-scheme` media query.
*/
applyPreferredColorScheme() {
const theme = this.getPreferredColorScheme();
const themeFromStorage = this.app?.options?.theme;
let theme = themeFromStorage;
if (!theme) {
theme = this.getPreferredColorScheme();
}
this.changeTheme(theme);
}