Summary of What Needs to be Done
Add a feature-detect guard for BroadcastChannel in src/utils/sseMultiplexer.js. The constructor currently checks typeof window !== "undefined" before instantiating BroadcastChannel, but BroadcastChannel itself is absent in Safari < 15.4, Internet Explorer, and older Edge. When a browser has window but lacks BroadcastChannel, the constructor throws ReferenceError, crashing the entire module at import time.
Changes
Wrap the new BroadcastChannel(...) call inside typeof BroadcastChannel !== "undefined". This allows the SSE multiplexer to gracefully fall back to the localStorage-based election path on unsupported browsers.
Impact
Severity: High — Production crash in Safari < 15.4, IE, and older Edge. Users on affected browsers get a blank page or runtime error on first load. This is a module initialization failure.
Please assign this task to me.
Summary of What Needs to be Done
Add a feature-detect guard for BroadcastChannel in src/utils/sseMultiplexer.js. The constructor currently checks typeof window !== "undefined" before instantiating BroadcastChannel, but BroadcastChannel itself is absent in Safari < 15.4, Internet Explorer, and older Edge. When a browser has window but lacks BroadcastChannel, the constructor throws ReferenceError, crashing the entire module at import time.
Changes
Wrap the new BroadcastChannel(...) call inside typeof BroadcastChannel !== "undefined". This allows the SSE multiplexer to gracefully fall back to the localStorage-based election path on unsupported browsers.
Impact
Severity: High — Production crash in Safari < 15.4, IE, and older Edge. Users on affected browsers get a blank page or runtime error on first load. This is a module initialization failure.
Please assign this task to me.