Automatic detection of divs with forms that are non-hidden by user interaction

This commit is contained in:
varjolintu 2017-09-08 09:04:27 +03:00
parent ca6883cb08
commit 4d11ce7b5f
2 changed files with 13 additions and 2 deletions

View file

@ -4,7 +4,7 @@
- Merged changes from the latest passifox (credits to smorks)
- HTTP auth works with all browsers
- Fixed showing credentials from previous logins in the popup (credits to smorks)
- TODO: Automatic detectal of div's with forms that are non-hidden by user interaction
- Automatic detection of div's with forms that are non-hidden by user interaction
0.2.9 (2017-08-27)
=========================

View file

@ -1696,4 +1696,15 @@ cipEvents.triggerActivatedTab = function() {
args: [ cip.url, cip.submitUrl ]
}).then(cip.retrieveCredentialsCallback);
}
}
}
// Detect div's that include forms and are visible
$(function() {
const divDetect = setInterval(function() {
const fields = cipFields.getAllFields();
if (fields.length > 0) {
cip.initCredentialFields(true);
clearInterval(divDetect);
}
}, 1000);
});