prefer getElementById
This commit is contained in:
parent
ad51ab3197
commit
de382f5c01
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue