Add a notification with domain URL when logins are not found for a site

This commit is contained in:
varjolintu 2023-06-22 22:40:05 +03:00
parent 273cdfd2b8
commit df654520ce

View file

@ -192,7 +192,8 @@ kpxcFill.fillSegmentedTotp = function(elem, val, totpInputs) {
kpxcFill.fillFromUsernameIcon = async function(combination) {
await kpxc.receiveCredentialsIfNecessary();
if (kpxc.credentials.length === 0) {
logDebug('Error: Credential list is empty.');
logDebug(`Error: Credential list is empty for: ${document.location.origin}`);
kpxcUI.createNotification('error', `${tr('credentialsNoLoginsFound')} ${document.location.origin}`);
return;
} else if (kpxc.credentials.length > 1 && kpxc.settings.autoCompleteUsernames) {
kpxcUserAutocomplete.showList(combination.username || combination.password);