From 74fe2a2bdc470f0b625f356dcc8161bd676592a2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 23 Jun 2016 02:57:57 -0400 Subject: [PATCH] Pass empty array to sync/finish event if no synced libraries --- chrome/content/zotero/xpcom/sync/syncRunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js index c99fa8f35..8c63e7075 100644 --- a/chrome/content/zotero/xpcom/sync/syncRunner.js +++ b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -223,7 +223,7 @@ Zotero.Sync.Runner_Module = function (options = {}) { } Zotero.debug("Done syncing"); - Zotero.Notifier.trigger('finish', 'sync', librariesToSync); + Zotero.Notifier.trigger('finish', 'sync', librariesToSync || []); } });