From ba494eb064f715b4f679785a8c0be50a78f301d4 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 4 Nov 2011 16:11:09 +0000 Subject: [PATCH] if --- source/Ox.UI/js/Core/Ox.Theme.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }