Browse Source

HUE-335. Hue throws 'background is not defined' error on start in IE.

Marcus McLaughlin 15 years ago
parent
commit
00764bcc2b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/templates/index.mako

+ 1 - 1
desktop/core/src/desktop/templates/index.mako

@@ -218,7 +218,7 @@
     (function(){
       var state = CCS.Desktop.getState();
       var options = {};
-      if (state.background) options.current = state.background;
+      if (state && state.background) options.current = state.background;
       new BackgroundManager($('bg'), $('desktop-menu'), options);
       if (Browser.Engine.trident) $(document.body).addClass('IEroot');
       $(document.body).addClass(Browser.Engine.name);