Pass empty array to sync/finish event if no synced libraries

This commit is contained in:
Dan Stillman 2016-06-23 02:57:57 -04:00
parent 3de40256bf
commit 74fe2a2bdc

View File

@ -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 || []);
}
});