瀏覽代碼

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

Marcus McLaughlin 15 年之前
父節點
當前提交
00764bcc2b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/templates/index.mako

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

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