diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-09-13 17:05:10 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-09-14 01:22:53 -0500 |
commit | 2aa29872a631b6becf7521ae95d6b548d3d3962f (patch) | |
tree | c7143efd34588cb7939d4f5c3fd1dd5634087d00 /app/assets/javascripts/main.js | |
parent | 05f403cf046912b53c4b4f4dae48d4b8cc375812 (diff) | |
download | gitlab-ce-2aa29872a631b6becf7521ae95d6b548d3d3962f.tar.gz |
Move performance_bar setup to dispatcher to main.js
Diffstat (limited to 'app/assets/javascripts/main.js')
-rw-r--r-- | app/assets/javascripts/main.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index a7179686aef..96e56a1e12e 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -28,6 +28,7 @@ import './frequent_items'; import initBreadcrumbs from './breadcrumb'; import initDispatcher from './dispatcher'; import initUsagePingConsent from './usage_ping_consent'; +import initPerformanceBar from './performance_bar'; import initSearchAutocomplete from './search_autocomplete'; import GlFieldErrors from './gl_field_errors'; @@ -80,6 +81,7 @@ document.addEventListener('DOMContentLoaded', () => { initUsagePingConsent(); if (document.querySelector('.search')) initSearchAutocomplete(); + if (document.querySelector('#js-peek')) initPerformanceBar({ container: '#js-peek' }); // Set the default path for all cookies to GitLab's root directory Cookies.defaults.path = gon.relative_url_root || '/'; |