diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 8e38cc6b5a..0bc67397bb 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -79,7 +79,9 @@ Zotero.Sync.Storage = new function () { return; } if (!_session.initFromPrefs()) { - _error("Module not initialized"); + Zotero.debug(_session.name + " module not initialized"); + _callbacks.onSkip(); + return; } if (!_session.active) { @@ -639,10 +641,8 @@ Zotero.Sync.Storage = new function () { this.checkServer = function (module, callback) { - _session = new Zotero.Sync.Storage.Session(module, { onError: _error }); - if (!_session.initFromPrefs()) { - _error("Module not initialized"); - } + _session = new Zotero.Sync.Storage.Session(module, { onError: callback }); + _session.initFromPrefs(); _session.checkServer(callback); } diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js index 49b32b9e28..1dfcf6fe99 100644 --- a/chrome/content/zotero/xpcom/storage/webdav.js +++ b/chrome/content/zotero/xpcom/storage/webdav.js @@ -163,6 +163,9 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.initFromPrefs = function () { } var url = Zotero.Prefs.get('sync.storage.url'); + if (!url) { + return false; + } url = scheme + '://' + url; var dir = "zotero";