1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/eventsource/lib/eventsource-polyfill.js

10 lines
261 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
var EventSource = require('./eventsource')
if (typeof window === 'object') {
window.EventSourcePolyfill = EventSource
if (!window.EventSource) window.EventSource = EventSource
module.exports = window.EventSource
} else {
module.exports = EventSource
}