Commit 884e3656 authored by Simon Knox's avatar Simon Knox

Merge branch 'jnnkl-remove-eventlistener-forks-new' into 'master'

Remove obsolete DOMContentLoadedEventListener

See merge request gitlab-org/gitlab!55051
parents 00949191 7c02b439
import Vue from 'vue';
import ForkGroupsList from './components/fork_groups_list.vue';
document.addEventListener('DOMContentLoaded', () => {
const mountElement = document.getElementById('fork-groups-mount-element');
const { endpoint } = mountElement.dataset;
return new Vue({
const mountElement = document.getElementById('fork-groups-mount-element');
const { endpoint } = mountElement.dataset;
// eslint-disable-next-line no-new
new Vue({
el: mountElement,
render(h) {
return h(ForkGroupsList, {
......@@ -15,5 +13,4 @@ document.addEventListener('DOMContentLoaded', () => {
},
});
},
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment