Make themes a little bit better about recovering from bad config values.

This commit is contained in:
Thomas Wilburn 2013-12-23 19:23:50 -08:00
parent 37cd59d0a6
commit 797a35e449

View file

@ -26,7 +26,7 @@ require([
"light": "css/caret.css"
};
var theme = user.uiTheme || "light";
var url = themes[theme];
var url = themes[theme] || themes.dark;
document.find("#theme").setAttribute("href", url);
}