Fix "librariesToSync is undefined" when full-text syncing is disabled

This commit is contained in:
Dan Stillman 2016-06-23 14:28:13 -04:00
parent 8bbf0bf495
commit df1c92b9a3

View file

@ -580,7 +580,7 @@ Zotero.Sync.Runner_Module = function (options = {}) {
* @return {Integer[]} - Array of libraries that need data syncing again
*/
var _doFullTextSync = Zotero.Promise.coroutine(function* (libraries, options) {
if (!Zotero.Prefs.get("sync.fulltext.enabled")) return;
if (!Zotero.Prefs.get("sync.fulltext.enabled")) return [];
Zotero.debug("Starting full-text syncing");
this.setSyncStatus(Zotero.getString('sync.status.syncingFullText'));