mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
resolve conflict in applyPreferredColorScheme method
This commit is contained in:
@@ -178,8 +178,7 @@ class OptionsWaiter {
|
||||
const themeFromStorage = this.app?.options?.theme;
|
||||
let theme = themeFromStorage;
|
||||
if (!theme) {
|
||||
const preferredTheme = (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "classic");
|
||||
theme = preferredTheme;
|
||||
theme = this.getPreferredColorScheme();
|
||||
}
|
||||
this.changeTheme(theme);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user