Fix "At least one of includeUserFiles or includeGroupFiles must be set in Zotero.Sync.Storage._getFilesToDownload()" error, except maybe for real this time
This commit is contained in:
parent
759f846610
commit
7eb1c9dd9f
1 changed files with 9 additions and 9 deletions
|
@ -847,29 +847,29 @@ Zotero.Sync.Storage = new function () {
|
|||
|
||||
|
||||
this.purgeDeletedStorageFiles = function (module, callback) {
|
||||
_session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||
if (!_session.initFromPrefs()) {
|
||||
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||
if (!session.initFromPrefs()) {
|
||||
return;
|
||||
}
|
||||
_session.purgeDeletedStorageFiles(callback);
|
||||
session.purgeDeletedStorageFiles(callback);
|
||||
}
|
||||
|
||||
|
||||
this.purgeOrphanedStorageFiles = function (module, callback) {
|
||||
_session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||
if (!_session.initFromPrefs()) {
|
||||
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||
if (!session.initFromPrefs()) {
|
||||
return;
|
||||
}
|
||||
_session.purgeOrphanedStorageFiles(callback);
|
||||
session.purgeOrphanedStorageFiles(callback);
|
||||
}
|
||||
|
||||
|
||||
this.isActive = function (module) {
|
||||
_session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||
if (!_session.initFromPrefs()) {
|
||||
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||
if (!session.initFromPrefs()) {
|
||||
return;
|
||||
}
|
||||
return _session.active;
|
||||
return session.active;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue