mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
Merge pull request #2006 from 0xh3xa/master
Bug Fix: selected theme not loading when refreshing
This commit is contained in:
commit
848660f8e1
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue