diff --git a/chrome/pwdex-loginmanager.js b/chrome/pwdex-loginmanager.js index f424917..b74a334 100644 --- a/chrome/pwdex-loginmanager.js +++ b/chrome/pwdex-loginmanager.js @@ -720,7 +720,7 @@ var passwordExporterLoginMgr = { // Updates the progress bar and iterates the generator updateProgress: function() { - var i = this.insertGenerator.next(); + var i = this.insertGenerator.next().value; var percentage = Math.floor((this.currentCount / this.totalCount) * 100); document.getElementById('pwdex-import-progress').value = percentage; document.getElementById('pwdex-import-status').value = this.currentCount + '/' + this.totalCount; @@ -738,7 +738,7 @@ var passwordExporterLoginMgr = { }, // Insert the new login into Login Manager - doInsert: function(entries) { + doInsert: function*(entries) { var loginManager = CC_loginManager.getService(Ci.nsILoginManager); var nsLoginInfo = new Components.Constructor("@mozilla.org/login-manager/loginInfo;1", Ci.nsILoginInfo, "init");