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.
This commit is contained in:
parent
f6af4ee7ef
commit
11d8cbd48d
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Reference in a new issue