www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 12de04607b658dc0759bfd1cdbf23fdea591683c
parent bc034089a6b668111c96cba89648cb47c97b6b8e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 13 Jan 2017 01:42:59 -0500

Don't connect to streaming server until UI is ready

Diffstat:
Mchrome/content/zotero/xpcom/sync/syncEventListeners.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/sync/syncEventListeners.js b/chrome/content/zotero/xpcom/sync/syncEventListeners.js @@ -111,7 +111,7 @@ Zotero.Sync.EventListeners.AutoSyncListener = { register: function () { 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) {