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