Don't connect to streaming server until UI is ready

This commit is contained in:
Dan Stillman 2017-01-13 01:42:59 -05:00
parent bc034089a6
commit 12de04607b

View File

@ -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) {