summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-27 17:14:06 +0100
committerPhil Hughes <me@iamphill.com>2017-09-27 17:14:06 +0100
commit35ac2fbf0a47fbf85050e361010ddffb535b68c8 (patch)
treecca9efaa58d5165fcb6024b2eeb11c967ae98c31
parentc940fe2ad9173b8716b14a5672fc9dc2d89e2d14 (diff)
downloadgitlab-ce-mobile-images-lazy-load-check.tar.gz
-rw-r--r--app/assets/javascripts/right_sidebar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/right_sidebar.js b/app/assets/javascripts/right_sidebar.js
index 48eed79eb38..0c1ec276baf 100644
--- a/app/assets/javascripts/right_sidebar.js
+++ b/app/assets/javascripts/right_sidebar.js
@@ -44,7 +44,7 @@ import Cookies from 'js-cookie';
$('aside.right-sidebar').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded');
$('.page-with-sidebar').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded');
- gl.lazyLoader.loadCheck();
+ if (gl.lazyLoader) gl.lazyLoader.loadCheck();
}
if (!triggered) {
return Cookies.set("collapsed_gutter", $('.right-sidebar').hasClass('right-sidebar-collapsed'));