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...
|
// as quickly as we possibly can, set a default theme...
|
||||||
const styleElements = Object.create(null);
|
const styleElements = Object.create(null);
|
||||||
let a;
|
let a;
|
||||||
const theme = SettingsStore.getValueAt(SettingLevel.DEFAULT, "theme");
|
const theme = SettingsStore.getValue("theme");
|
||||||
for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
|
for (let i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
|
||||||
const href = a.getAttribute("href");
|
const href = a.getAttribute("href");
|
||||||
if (!href) continue;
|
if (!href) continue;
|
||||||
|
|
Loading…
Reference in New Issue