Skip to content
Snippets Groups Projects

Polyfills for EventTarget and CustomEvent

Merged Eugenij requested to merge eugenijm/pleroma-fe:event-target-fix into develop
All threads resolved!
4 files
+ 24
0
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 9
0
import EventTargetPolyfill from '@ungap/event-target'
try {
/* eslint-disable no-new */
new EventTarget()
/* eslint-enable no-new */
} catch (e) {
window.EventTarget = EventTargetPolyfill
}
Loading