diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js index 4b3af6a883..c37c3b9277 100644 --- a/chrome/content/zotero/preferences/preferences_sync.js +++ b/chrome/content/zotero/preferences/preferences_sync.js @@ -334,9 +334,7 @@ Zotero_Preferences.Sync = { // TODO: better way of checking for an active session? if (Zotero.Sync.Server.sessionIDComponent == 'sessionid=') { Zotero.Sync.Server.login() - .then(function () { - callback(); - }) + .then(callback) .done(); } else {