mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2155 from keepassxreboot/fix/show_noc_in_http_auth
Fix showing number of credentials with HTTP Basic Auth
This commit is contained in:
commit
043c92870a
1 changed files with 7 additions and 1 deletions
|
|
@ -17,7 +17,13 @@ browserAction.show = async function(tab, popupData) {
|
|||
popup: `popups/${popupData.popup}.html`
|
||||
});
|
||||
|
||||
const badgeText = popupData.popup === 'popup_login' ? String(page.tabs[tab.id]?.loginList?.length) : '';
|
||||
let badgeText = '';
|
||||
if (popupData.popup === 'popup_login') {
|
||||
badgeText = String(page.tabs[tab.id]?.loginList?.length);
|
||||
} else if (popupData.popup === 'popup_httpauth') {
|
||||
badgeText = String(page.tabs[tab.id]?.loginList?.logins?.length);
|
||||
}
|
||||
|
||||
browserAction.setBadgeText(tab?.id, badgeText);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue