mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
resolve conflict in applyPreferredColorScheme method
This commit is contained in:
parent
bbb211d819
commit
0e7b1f7c78
1 changed files with 1 additions and 2 deletions
|
@ -178,8 +178,7 @@ class OptionsWaiter {
|
||||||
const themeFromStorage = this.app?.options?.theme;
|
const themeFromStorage = this.app?.options?.theme;
|
||||||
let theme = themeFromStorage;
|
let theme = themeFromStorage;
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
const preferredTheme = (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "classic");
|
theme = this.getPreferredColorScheme();
|
||||||
theme = preferredTheme;
|
|
||||||
}
|
}
|
||||||
this.changeTheme(theme);
|
this.changeTheme(theme);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue