Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Aug 9, 2024
1 parent 0a3dc31 commit bd860d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
while(!record && i < patterns.length) {
var pattern = patterns[i];
record = whitelistObject.domains[pattern];
if (record.tags?.length) {
// Filter by tag.
if (record && record.tags?.length) {
if (allowTag) {
if (record.tags.indexOf(allowTag) === -1) {
// Disable record if not tag match.
Expand Down

0 comments on commit bd860d2

Please sign in to comment.