prefer getElementById

This commit is contained in:
Mike Greiling 2018-03-06 01:25:19 -06:00
parent ad51ab3197
commit de382f5c01
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -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