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:
Travis Ralston 2017-11-16 20:50:55 -07:00
parent 1ab5ff079c
commit 67ca1515d8

View file

@ -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;