logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

event_target_polyfill.js (308B)


  1. import EventTargetPolyfill from '@ungap/event-target'
  2. try {
  3. // for some reason eslint both likes and dislikes
  4. // no-new here so we just call something useless
  5. // so it stops reporting this file
  6. const et = new EventTarget()
  7. et.dispatchEvent()
  8. } catch {
  9. window.EventTarget = EventTargetPolyfill
  10. }