Use Services for an nsILoginManager initialization

This commit is contained in:
Dan Stillman 2018-02-25 01:16:36 -05:00
parent 95bb107867
commit 4a22184156

View File

@ -381,9 +381,7 @@ Zotero.Sync.Data.Local = {
*/
_getAPIKeyLoginInfo: function () {
try {
var loginManager = Components.classes["@mozilla.org/login-manager;1"]
.getService(Components.interfaces.nsILoginManager);
var logins = loginManager.findLogins(
var logins = Services.logins.findLogins(
{},
this._loginManagerHost,
null,