Show proper error message on Firefox login manager service failure
If the XPCOM service can't even be retrieved, show the same message as when there's an error finding logins.
This commit is contained in:
parent
5f3313d132
commit
c813df84dd
1 changed files with 2 additions and 2 deletions
|
@ -1232,9 +1232,9 @@ Zotero.Sync.Server = new function () {
|
|||
}
|
||||
|
||||
Zotero.debug('Getting Zotero sync password');
|
||||
var loginManager = Components.classes["@mozilla.org/login-manager;1"]
|
||||
.getService(Components.interfaces.nsILoginManager);
|
||||
try {
|
||||
var loginManager = Components.classes["@mozilla.org/login-manager;1"]
|
||||
.getService(Components.interfaces.nsILoginManager);
|
||||
var logins = loginManager.findLogins({}, _loginManagerHost, null, _loginManagerRealm);
|
||||
}
|
||||
catch (e) {
|
||||
|
|
Loading…
Reference in a new issue