File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ import {parseQs, parseQsFromFragment} from './url_utils';
7777import Platform from './platform' ;
7878
7979import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg' ;
80- import SettingsStore from "matrix-react-sdk/lib/settings/SettingsStore" ;
80+ import SettingsStore , { SettingLevel } from "matrix-react-sdk/lib/settings/SettingsStore" ;
8181import Tinter from 'matrix-react-sdk/lib/Tinter' ;
8282
8383var lastLocationHashSet = null ;
@@ -299,7 +299,7 @@ async function loadApp() {
299299 // as quickly as we possibly can, set a default theme...
300300 const styleElements = Object . create ( null ) ;
301301 let a ;
302- const theme = configJson . default_theme || 'light' ;
302+ const theme = SettingsStore . getValueAt ( SettingLevel . DEFAULT , "theme" ) ;
303303 for ( let i = 0 ; ( a = document . getElementsByTagName ( "link" ) [ i ] ) ; i ++ ) {
304304 const href = a . getAttribute ( "href" ) ;
305305 if ( ! href ) continue ;
You can’t perform that action at this time.
0 commit comments