mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
fx140: Streamer: Don't use hiddenDOMWindow
WebSocket is available globally.
This commit is contained in:
parent
c16b74ec5b
commit
496e067d11
1 changed files with 1 additions and 4 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue