Fix potential WebDAV error on Restore to Zoteor Server even if WebDAV isn't selected
This commit is contained in:
parent
a979acb4b8
commit
fe1eb01ce6
1 changed files with 6 additions and 0 deletions
|
@ -786,6 +786,9 @@ Zotero.Sync.Storage = new function () {
|
||||||
|
|
||||||
this.purgeDeletedStorageFiles = function (module, callback) {
|
this.purgeDeletedStorageFiles = function (module, callback) {
|
||||||
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||||
|
if (!this.active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!session.initFromPrefs()) {
|
if (!session.initFromPrefs()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -795,6 +798,9 @@ Zotero.Sync.Storage = new function () {
|
||||||
|
|
||||||
this.purgeOrphanedStorageFiles = function (module, callback) {
|
this.purgeOrphanedStorageFiles = function (module, callback) {
|
||||||
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
var session = new Zotero.Sync.Storage.Session(module, { onError: _error });
|
||||||
|
if (!this.active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!session.initFromPrefs()) {
|
if (!session.initFromPrefs()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue