Merge pull request #915 from keepassxreboot/fix/add_wildcard_to_ignored_url

Add wildcard to the ignored URL
This commit is contained in:
Sami Vänttinen 2020-07-07 07:25:03 +03:00 committed by GitHub
commit 0727cc188f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,8 @@ kpxcBanner.create = async function(credentials = {}) {
kpxcBanner.banner.removeChild(dialog);
} else {
if (ignoreCheckbox.checked) {
kpxc.ignoreSite([ window.top.location.href ]);
const ignoreUrl = window.location.href.slice(0, window.location.href.lastIndexOf('/') + 1) + '*';
kpxc.ignoreSite([ ignoreUrl ]);
}
kpxcBanner.destroy();
}