Add a notifier event for sync start

This commit is contained in:
Dan Stillman 2016-12-24 18:01:56 -05:00
parent 0a2330b79f
commit 8af73f9983

View file

@ -110,6 +110,8 @@ Zotero.Sync.Runner_Module = function (options = {}) {
}
_syncInProgress = true;
yield Zotero.Notifier.trigger('start', 'sync', []);
// Purge deleted objects so they don't cause sync errors (e.g., long tags)
yield Zotero.purgeDataObjects(true);