fix #138 (keep Ox.Theme from setting a non-existing theme)
This commit is contained in:
parent
38ae7b4e53
commit
67f744baaf
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ Ox.Theme = (function() {
|
|||
|
||||
function setTheme(theme) {
|
||||
var currentTheme = getTheme();
|
||||
if (theme != currentTheme) {
|
||||
if (theme != currentTheme && Ox.contains(that.getThemes(), theme)) {
|
||||
Ox.UI.$body
|
||||
.addClass(
|
||||
'OxTheme'
|
||||
|
|
Loading…
Reference in a new issue