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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user