Update missing var to use element theme

pull/21833/head
Nad Chishtie 2020-07-14 14:15:24 +01:00
parent 5b3c3f53fe
commit 71dc6e8e10
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ export default class ThemeWatcher {
// If the user hasn't really made a preference in either direction, assume the defaults of the
// settings and use those.
if (SettingsStore.getValue('use_system_theme')) {
if (this.preferDark.matches) return 'dark';
if (this.preferLight.matches) return 'light';
if (this.preferDark.matches) return 'element-dark';
if (this.preferLight.matches) return 'element';
}
console.log("returning theme value");
return SettingsStore.getValue('theme');