Commit 4653f081 authored by Jannik Lehmann's avatar Jannik Lehmann

Remove obsolete DOMContentLoadedEventListener

parent e5df1467
import Vue from 'vue'; import Vue from 'vue';
import GlCountdown from '~/vue_shared/components/gl_countdown.vue'; import GlCountdown from '~/vue_shared/components/gl_countdown.vue';
document.addEventListener('DOMContentLoaded', () => { const remainingTimeElements = document.querySelectorAll('.js-remaining-time');
const remainingTimeElements = document.querySelectorAll('.js-remaining-time'); remainingTimeElements.forEach(
remainingTimeElements.forEach( (el) =>
(el) => new Vue({
new Vue({ el,
el, render(h) {
render(h) { return h(GlCountdown, {
return h(GlCountdown, { props: {
props: { endDateString: el.dateTime,
endDateString: el.dateTime, },
}, });
}); },
}, }),
}), );
);
});
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