File size: 261 Bytes
f9f0fec
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
var EventSource = require('./eventsource')

if (typeof window === 'object') {
  window.EventSourcePolyfill = EventSource
  if (!window.EventSource) window.EventSource = EventSource
  module.exports = window.EventSource
} else {
  module.exports = EventSource
}