pleroma-fe/src/lib/event_target_polyfill.js

10 lines
201 B
JavaScript
Raw Normal View History

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