Ver código fonte

HUE-6895 [frontend] Disable errorcatcher when in Django debug mode

Enrico Berti 8 anos atrás
pai
commit
51a684f343

+ 3 - 0
desktop/core/src/desktop/templates/common_header.mako

@@ -114,7 +114,10 @@ if USE_NEW_EDITOR.get():
 
   ${ commonHeaderFooterComponents.header_i18n_redirection(user, is_s3_enabled, apps) }
 
+  % if not conf.DJANGO_DEBUG_MODE.get():
   <script src="${ static('desktop/js/hue.errorcatcher.js') }"></script>
+  % endif
+
   <script src="${ static('desktop/js/hue.utils.js') }"></script>
   <script src="${ static('desktop/ext/js/jquery/jquery-2.1.1.min.js') }"></script>
   <script src="${ static('desktop/js/jquery.migration.js') }"></script>

+ 2 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -59,8 +59,9 @@
   <script type="text/javascript">
     var IS_HUE_4 = true;
   </script>
-
+  % if not conf.DJANGO_DEBUG_MODE.get():
   <script src="${ static('desktop/js/hue.errorcatcher.js') }"></script>
+  % endif
   <script src="${ static('desktop/js/hue4.utils.js') }"></script>
 </head>