2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
a3957273
848660f8e1 Merge pull request #2006 from 0xh3xa/master
Bug Fix: selected theme not loading when refreshing
2025-04-03 19:15:02 +01:00
heaprc
0e7b1f7c78 resolve conflict in applyPreferredColorScheme method 2025-04-03 09:31:53 +02:00
0xh3xa
bbb211d819 Merge branch 'master' into master 2025-04-03 09:23:39 +02:00
0xh3xa
9ca0152aac Merge branch 'master' into master 2025-04-03 09:22:38 +02:00
0xh3xa
49d69a293b Fix selected theme not loading when refreshing 2025-03-29 01:27:38 +01:00

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