Explorar el Código

Optimize request

Denis K hace 8 años
padre
commit
bb56155557
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      jet/static/jet/js/src/layout-updaters/branding.js

+ 3 - 1
jet/static/jet/js/src/layout-updaters/branding.js

@@ -25,5 +25,7 @@ $(document).ready(function() {
     $('#branding').each(function() {
         new BrandingUpdater($(this)).run();
     });
-    $('<img>').attr('src', '//jet.geex-arts.com/ping.gif').hide().appendTo($('body.login'));
+    if ($('body.login').length != 0) {
+        $('<img>').attr('src', '//jet.geex-arts.com/ping.gif');
+    }
 });