Commit 5f4f1b9c authored by Jannik Lehmann's avatar Jannik Lehmann Committed by David O'Regan

Remove obsolete DOMContentLoadedEventListener

parent 825beeff
/* eslint-disable no-new */
import Vue from 'vue';
import Vuex from 'vuex';
import EditUserList from '~/user_lists/components/edit_user_list.vue';
......@@ -5,15 +7,13 @@ import createStore from '~/user_lists/store/edit';
Vue.use(Vuex);
document.addEventListener('DOMContentLoaded', () => {
const el = document.getElementById('js-edit-user-list');
const { userListsDocsPath } = el.dataset;
return new Vue({
el,
store: createStore(el.dataset),
provide: { userListsDocsPath },
render(h) {
return h(EditUserList, {});
},
});
const el = document.getElementById('js-edit-user-list');
const { userListsDocsPath } = el.dataset;
new Vue({
el,
store: createStore(el.dataset),
provide: { userListsDocsPath },
render(h) {
return h(EditUserList, {});
},
});
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