diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-27 17:14:06 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-27 17:14:06 +0100 |
commit | 35ac2fbf0a47fbf85050e361010ddffb535b68c8 (patch) | |
tree | cca9efaa58d5165fcb6024b2eeb11c967ae98c31 | |
parent | c940fe2ad9173b8716b14a5672fc9dc2d89e2d14 (diff) | |
download | gitlab-ce-mobile-images-lazy-load-check.tar.gz |
karma spec fixesmobile-images-lazy-load-check
-rw-r--r-- | app/assets/javascripts/right_sidebar.js | 2 |
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')); |