yandere_fe/src/lib/event_target_polyfill.js

10 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
}