fx140: Streamer: Don't use hiddenDOMWindow

WebSocket is available globally.
This commit is contained in:
Abe Jellinek 2025-07-01 12:05:22 -04:00 • committed by Dan Stillman
parent c16b74ec5b
commit 496e067d11

View file

@ -150,10 +150,7 @@ Zotero.Streamer_Module.prototype = {
this._ready = false;
this._reconnect = true;
var window = Cc["@mozilla.org/appshell/appShellService;1"]
.getService(Ci.nsIAppShellService).hiddenDOMWindow;
this._socket = new window.WebSocket(url);
var deferred = Zotero.Promise.defer();
this._socket = new WebSocket(url);
this._socket.onopen = () => {
Zotero.debug("WebSocket connection opened");