Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
261 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.