Merge pull request #207 from keepassxreboot/match_site_fix

Fix undefined check
This commit is contained in:
Janek Bevendorff 2018-06-18 13:46:04 +02:00 committed by GitHub
commit e1c219a731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,9 +206,11 @@ browserAction.setRememberPopup = function(tabId, username, password, url, userna
const settings = item.settings;
// Don't show anything if the site is in the ignore list
for (const site of settings.ignoredSites) {
if (siteMatch(site.url, url)) {
return;
if (settings.ignoredSites !== undefined) {
for (const site of settings.ignoredSites) {
if (siteMatch(site.url, url)) {
return;
}
}
}