diff options
author | Phil Hughes <me@iamphill.com> | 2019-02-19 08:46:11 +0000 |
---|---|---|
committer | mfluharty <mfluharty@gitlab.com> | 2019-02-20 11:20:34 -0700 |
commit | 302eff3fcc56e654fa86ebaeca8185680e5bb343 (patch) | |
tree | 232a6ac70b73f7c0b106ae8b333954abb12e9f82 | |
parent | 4eaa2ec716be49067a345d48885d6b41eec9e91f (diff) | |
download | gitlab-ce-302eff3fcc56e654fa86ebaeca8185680e5bb343.tar.gz |
Fixes some requests not being tracked in performance bar
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57886
-rw-r--r-- | app/assets/javascripts/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 63db4938cd7..1b722c0505a 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -78,7 +78,6 @@ function deferredInitialisation() { initUserPopovers(); if (document.querySelector('.search')) initSearchAutocomplete(); - if (document.querySelector('#js-peek')) initPerformanceBar({ container: '#js-peek' }); addSelectOnFocusBehaviour('.js-select-on-focus'); @@ -145,6 +144,8 @@ document.addEventListener('DOMContentLoaded', () => { const $sidebarGutterToggle = $('.js-sidebar-toggle'); let bootstrapBreakpoint = bp.getBreakpointSize(); + if (document.querySelector('#js-peek')) initPerformanceBar({ container: '#js-peek' }); + initLayoutNav(); // Set the default path for all cookies to GitLab's root directory |