akkoma-fe/src/lib/event_target_polyfill.js

9 lines
201 B
JavaScript

import EventTargetPolyfill from '@ungap/event-target'
try {
/* eslint-disable no-new */
new EventTarget()
/* eslint-enable no-new */
} catch (e) {
window.EventTarget = EventTargetPolyfill
}