Fix undefined check

This commit is contained in:
varjolintu 2018-06-16 20:38:03 +03:00
parent 6ba29a70f2
commit cff6324c41

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;
}
}
}