eventsource-polyfill.js 261 B

123456789
  1. var EventSource = require('./eventsource')
  2. if (typeof window === 'object') {
  3. window.EventSourcePolyfill = EventSource
  4. if (!window.EventSource) window.EventSource = EventSource
  5. module.exports = window.EventSource
  6. } else {
  7. module.exports = EventSource
  8. }