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