diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-03-06 10:25:19 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-06 12:11:40 +0300 |
commit | de382f5c01866cdeedff21048cbca4b3043a3057 (patch) | |
tree | 947895facce7e707a8106d54a6f51cce434d7ccd /app/assets | |
parent | ad51ab319722ed78fc7f73fe841998af52027a0d (diff) |
prefer getElementById
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/monitoring/monitoring_bundle.js | 2 |
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 |