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
1 changed files with 1 additions and 1 deletions

View File

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