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,
...@@ -15,5 +14,4 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -15,5 +14,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