Skip to content

Commit

Permalink
Attenuate non-domain warning
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Jan 21, 2023
1 parent f594d82 commit 0155c36
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/pi-hole/js/groups-adlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ function format(data) {
}
}

var invalidStyle =
data.invalid_domains !== null && data.invalid_domains > 0 && numbers === true
? ' style="color:red; font-weight:bold;"'
: "";

// Compile extra info for displaying
return (
"<table>" +
Expand All @@ -103,8 +98,7 @@ function format(data) {
'</td></tr><tr class="dataTables-child"><td>Number of domains on this list:&nbsp;&nbsp;</td><td>' +
(data.number !== null && numbers === true ? parseInt(data.number, 10) : "N/A") +
'</td></tr><tr class="dataTables-child"' +
invalidStyle +
"><td>Number of invalid domains on this list:&nbsp;&nbsp;</td>" +
"><td>Number of non-domains on this list:&nbsp;&nbsp;</td>" +
"<td>" +
(data.invalid_domains !== null && numbers === true
? parseInt(data.invalid_domains, 10)
Expand Down

0 comments on commit 0155c36

Please sign in to comment.