pleroma-fe/src/lib/event_target_polyfill.js

9 lines
148 B
JavaScript
Raw Normal View History

import EventTargetPolyfill from '@ungap/event-target'
try {
2025-02-04 14:14:31 +02:00
new EventTarget()
2025-02-04 14:14:31 +02:00
} catch (e) {
window.EventTarget = EventTargetPolyfill
}