Minor readability improvement for readable passwords
This commit is contained in:
11
passmate.js
11
passmate.js
@@ -293,9 +293,14 @@ class PassMate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (let [info, container] of this.readablePasswords) {
|
for (let [info, container] of this.readablePasswords) {
|
||||||
let choices = new Array(6);
|
let choices = [
|
||||||
choices.fill(this.WORDS, 0, 3);
|
this.WORDS,
|
||||||
choices.fill(this.SAFE_NUM, 3, 6);
|
this.WORDS,
|
||||||
|
this.WORDS,
|
||||||
|
this.SAFE_NUM,
|
||||||
|
this.SAFE_NUM,
|
||||||
|
this.SAFE_NUM,
|
||||||
|
];
|
||||||
this.deriveValidArray(key, info, choices, this.validatePassword.bind(this))
|
this.deriveValidArray(key, info, choices, this.validatePassword.bind(this))
|
||||||
.then((arr) => {
|
.then((arr) => {
|
||||||
container.innerText = arr.join('');
|
container.innerText = arr.join('');
|
||||||
|
|||||||
Reference in New Issue
Block a user