diff --git a/source/Ox.UI/js/Core/Ox.Theme.js b/source/Ox.UI/js/Core/Ox.Theme.js index e0aa2134..7b09b6c0 100644 --- a/source/Ox.UI/js/Core/Ox.Theme.js +++ b/source/Ox.UI/js/Core/Ox.Theme.js @@ -117,7 +117,9 @@ Ox.Theme = (function() { }); }); } - localStorage && localStorage.OxTheme = theme; + if (localStorage) { + localStorage.OxTheme = theme; + } return that; }