Do not store passwords in settings storage

This commit is contained in:
Pavel Djundik 2017-06-03 21:41:21 +03:00
parent b46f92c7d8
commit 22c00aca95

View file

@ -44,10 +44,13 @@ for (var i in options) {
}
settings.on("change", "input, select, textarea", function() {
var self = $(this);
var name = self.attr("name");
const self = $(this);
const type = self.attr("type");
const name = self.attr("name");
if (self.attr("type") === "checkbox") {
if (type === "password") {
return;
} else if (type === "checkbox") {
options[name] = self.prop("checked");
} else {
options[name] = self.val();