Lint errors

This commit is contained in:
leolivier 2019-12-29 17:31:58 +01:00
parent c632a4cf38
commit d984172bf4
2 changed files with 15 additions and 15 deletions

View File

@ -9,7 +9,7 @@
"url": "https://github.com/leolivier"
},
"resources": {
"js": "Vxx8ASApkTAYYlF+2vkL+r1YVDJi8G1enX0ATcFJubR8BVdCDuPsBmOalMAzLdsJ3K5c6hGMuKiB6jssCWuFdD7SRSR/jHlPLrpukYCPQeDlgGUqyTH9NzeMRy1mOhlzN4jP32Yuce+OFSE05jC/20KB21gsMgdXnID0ukLBHYG6vcFW5gzxgEhaHZwotdvuVbwVQeYtJEKDov91baZTORwfID7HJmGXsQl8/i3QhU1Qg2XFrnD0tp/g8GH1XemGv5KFdnp7lNHjyTYaU8TS0eKPLztWTPS8rQXZ5TFm02o4QqOIrt52NO+jM2ZSw3u2aZdrgUiJ0BNrJ2A+wYFSnA==",
"js": "clj9QKGczFvvbUVVkvtgT/Ni9Ee1qDcaVRI5MALloEkdbCUT6JLlGcBf/Xrs3riDzFucCuvaQWfVdgWpo6FpBcJbDb2/Vqqukv8nqGenO+4sKTOh5jzJl1nbTmHJ8gKOpn1Pc3ytf3uyqd2jqC9AfplB+9m/n8T9oDUdKh+r6nj2rP3sQUTrtMoAUGOklV8mW3VOZa/yMpcbP+yP9wwjvXB8fMwNfGy69eeArbc0iH6RXDlIhu1BZc5hg1CrIrmyC5zL8Er/jwOeChtEfeuByuCRVQjw7IJYv8IUEiAP2172FhGIaA2hyvpO7L5lKAFpLUMsUkCbaANjhZeyGTpWUg==",
"css": "em80YYK5vogs+ctoz9AtDdvsQfc8mstefQ5Nhu/cxpmg4/I12u95rEcQdAvQ36iA+Q3QqtnbSfKZt4zLexJWvWsPX9+nPJdLPfkTm0xKtjvl8gwGuUJfCkinV661RRsmS9n5Cs3scjeiZrnt501JPZ9+kU7OGVCl8cNb+5DNms1EVoWieeyJo2saODN4LGEA242t9Ol6y4bnDZmzDiB+TvIhNt4joncRaAf45zfzda9+XZK4S8ZrjHO9sJXXaR5WKVB15zckyGKziSpZBJqzqMONEQqJVqmuefzkcif+vGMmhnWenaGZuxybxwkWY3Cq0I30VtxvUXNLB3XR1h/s2Q=="
},
"url": "https://plugins.keeweb.info/plugins/haveibeenpwned",

View File

@ -67,7 +67,7 @@ class HIBPUtils {
});
xhr.open(config.method || 'GET', config.url);
if (config.headers) {
for (var key in config.headers) {
for (let key in config.headers) {
xhr.setRequestHeader(key, config.headers[key]);
};
};
@ -135,7 +135,7 @@ DetailsView.prototype.checkNamePwned = function (name) {
url: url,
method: 'GET',
responseType: 'json',
headers: { "Access-Control-Allow-Origin" : '*'}, //, "Access-Control-Allow-Methods" : 'GET,OPTIONS', "Access-Control-Allow-Headers" : 'Content-Type'},
headers: { 'Access-Control-Allow-Origin': '*'},
data: null,
statuses: [200, 404],
success: (data, xhr) => {
@ -204,22 +204,22 @@ module.exports.getSettings = function () {
label: 'Check passwords against HaveIBeenPwned list',
type: 'checkbox',
value: hibp.checkPwnedPwd
// disabled since API V3 of HaveIbeenPwned is not free anymore for checking accounts
// }, {
// name: 'checkPwnedName',
// label: 'Check user ids against HaveIBeenPwned list',
// type: 'checkbox',
// value: hibp.checkPwnedName
// disabled since API V3 of HaveIbeenPwned is not free anymore for checking accounts
// }, {
// name: 'checkPwnedName',
// label: 'Check user ids against HaveIBeenPwned list',
// type: 'checkbox',
// value: hibp.checkPwnedName
}, {
name: 'blockPwnedPwd',
label: 'Block pwned passwords if they are in HaveIBeenPwned list',
type: 'checkbox',
value: hibp.blockPwnedPwd
// }, {
// name: 'blockPwnedName',
// label: 'Block pwned names if they are in HaveIBeenPwned list',
// type: 'checkbox',
// value: hibp.blockPwnedName
// }, {
// name: 'blockPwnedName',
// label: 'Block pwned names if they are in HaveIBeenPwned list',
// type: 'checkbox',
// value: hibp.blockPwnedName
}];
};
@ -230,7 +230,7 @@ module.exports.setSettings = function (changes) {
}
// disabled since API V3 of HaveIbeenPwned is not free anymore for checking accounts
hibp.checkPwnedName = false;
hibp.blockPwnedName = false
hibp.blockPwnedName = false;
};
module.exports.uninstall = function () {