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 Vue from 'vue';
import ForkGroupsList from './components/fork_groups_list.vue'; import ForkGroupsList from './components/fork_groups_list.vue';
document.addEventListener('DOMContentLoaded', () => { const mountElement = document.getElementById('fork-groups-mount-element');
const mountElement = document.getElementById('fork-groups-mount-element'); const { endpoint } = mountElement.dataset;
// eslint-disable-next-line no-new
const { endpoint } = mountElement.dataset; new Vue({
el: mountElement,
return new Vue({ render(h) {
el: mountElement, return h(ForkGroupsList, {
render(h) { props: {
return h(ForkGroupsList, { endpoint,
props: { },
endpoint, });
}, },
});
},
});
}); });
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