Focus fields before filling them

This commit is contained in:
Kevin Velghe 2016-07-26 16:12:19 +02:00
parent 614794a62a
commit e9e780ac56

View File

@ -342,9 +342,11 @@ cat <<EOF
for (var j = 0; j < inputs.length; j++) {
var input = inputs[j];
if (input.type == "text" || input.type == "email") {
input.focus();
input.value = "$(javascript_escape "${username}")";
}
if (input.type == "password") {
input.focus();
input.value = "$(javascript_escape "${password}")";
}
}