source: trip-planner-front/node_modules/eventsource/lib/eventsource-polyfill.js@ 76712b2

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
RevLine 
[6a3a178]1var EventSource = require('./eventsource')
2
3if (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.