Merge pull request #520 from keepassxreboot/username_only_forms

Allow filling username only from keyboard shortcut
This commit is contained in:
Sami Vänttinen 2019-05-15 13:39:25 +03:00 committed by GitHub
commit 4d98c93f80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -818,12 +818,16 @@ kpxc.initCredentialFields = function(forceCall) {
kpxc.initializeSitePreferences();
if (kpxc.settings.sitePreferences) {
for (const site of kpxc.settings.sitePreferences) {
if (site.url === window.top.location.href || siteMatch(site.url, window.top.location.href)) {
if (site.ignore === IGNORE_FULL) {
return;
}
try {
if (siteMatch(site.url, window.top.location.href) || site.url === window.top.location.href) {
if (site.ignore === IGNORE_FULL) {
return;
}
_singleInputEnabledForPage = site.usernameOnly;
_singleInputEnabledForPage = site.usernameOnly;
}
} catch (err) {
return;
}
}
}