summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-03-06 01:25:19 -0600
committerMike Greiling <mike@pixelcog.com>2018-03-06 03:11:40 -0600
commitde382f5c01866cdeedff21048cbca4b3043a3057 (patch)
tree947895facce7e707a8106d54a6f51cce434d7ccd /app/assets
parentad51ab319722ed78fc7f73fe841998af52027a0d (diff)
downloadgitlab-ce-de382f5c01866cdeedff21048cbca4b3043a3057.tar.gz
prefer getElementById
Diffstat (limited to 'app/assets')
-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