How to make EventSource available inside SharedWorker in FireFox?
问题 I am trying to implement Server-Sent Events (SSE) inside a SharedWorker. The implementation is working with no problems in Google Chrome. However, it does not work in FireFox at all. When I try get it to work in FireFox I get this error in the console. error { target: SharedWorker, isTrusted: true, message: "ReferenceError: EventSource is not defined", filename: "https://example.com/add-ons/icws/js/worker.js", lineno: 28, colno: 0, currentTarget: SharedWorker, eventPhase: 2, bubbles: false,