source:
trip-planner-front/node_modules/eventsource/lib/eventsource-polyfill.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
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.