Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-03-06 10:25:19 +0300
committerMike Greiling <mike@pixelcog.com>2018-03-06 12:11:40 +0300
commitde382f5c01866cdeedff21048cbca4b3043a3057 (patch)
tree947895facce7e707a8106d54a6f51cce434d7ccd /app/assets/javascripts/monitoring
parentad51ab319722ed78fc7f73fe841998af52027a0d (diff)
prefer getElementById
Diffstat (limited to 'app/assets/javascripts/monitoring')
-rw-r--r--app/assets/javascripts/monitoring/monitoring_bundle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/monitoring/monitoring_bundle.js b/app/assets/javascripts/monitoring/monitoring_bundle.js
index a9b608e4433..f881a3954b9 100644
--- a/app/assets/javascripts/monitoring/monitoring_bundle.js
+++ b/app/assets/javascripts/monitoring/monitoring_bundle.js
@@ -2,7 +2,7 @@ import Vue from 'vue';
import Dashboard from './components/dashboard.vue';
export default () => {
- const el = document.querySelector('#prometheus-graphs');
+ const el = document.getElementById('prometheus-graphs');
if (el && el.dataset) {
// eslint-disable-next-line no-new