From 11d8cbd48d93c1a9cd27d2038b50952ee90c101e Mon Sep 17 00:00:00 2001 From: SirBelga Date: Wed, 22 Oct 2014 19:53:26 +0200 Subject: [PATCH] Update options.js Modified saving options in order to save the login along the password in locale storage, so it's available with each restart. --- lib/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/options.js b/lib/options.js index fcb7c6a..4afacdc 100644 --- a/lib/options.js +++ b/lib/options.js @@ -89,8 +89,8 @@ OptionsManager.prototype.savePart = function(pass) { if (this.opts !== null) { for (i = this.opts.length - 1; i >= 0; --i) { - if ((pass && this.getElemType(this.opts[i]) === "password") - || (!pass && this.getElemType(this.opts[i]) !== "password")) { + if ((pass && (this.getElemType(this.opts[i]) === "password" || this.getElemType(this.opts[i]) === "text")) + || (!pass && this.getElemType(this.opts[i]) !== "password" && this.getElemType(this.opts[i]) !== "text")) { data[this.opts[i].id] = this.getElemValue(this.opts[i]); this.values[this.opts[i].id] = data[this.opts[i].id]; }