Don't connect to streaming server until UI is ready
This commit is contained in:
parent
bc034089a6
commit
12de04607b
|
@ -111,7 +111,7 @@ Zotero.Sync.EventListeners.AutoSyncListener = {
|
||||||
|
|
||||||
register: function () {
|
register: function () {
|
||||||
this._observerID = Zotero.Notifier.registerObserver(this, false, 'autosync');
|
this._observerID = Zotero.Notifier.registerObserver(this, false, 'autosync');
|
||||||
Zotero.Sync.Streamer.init();
|
Zotero.uiReadyPromise.then(() => Zotero.Sync.Streamer.init());
|
||||||
},
|
},
|
||||||
|
|
||||||
notify: function (event, type, ids, extraData) {
|
notify: function (event, type, ids, extraData) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user