mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Pull the theme through the default chain
This is so the `config` level is respected. Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
1ab5ff079c
commit
67ca1515d8
@ -301,7 +301,7 @@ async function loadApp() {
|
||||
// as quickly as we possibly can, set a default theme...
|
||||
const styleElements = Object.create(null);
|
||||
let a;
|
||||
const theme = SettingsStore.getValueAt(SettingLevel.DEFAULT, "theme");
|
||||
const theme = SettingsStore.getValue("theme");
|
||||
for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
|
||||
const href = a.getAttribute("href");
|
||||
if (!href) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user