Make themes a little bit better about recovering from bad config values.
This commit is contained in:
parent
37cd59d0a6
commit
797a35e449
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue