Merge pull request #1113 from pi-hole/length

length cannot be negative
This commit is contained in:
Adam Warner
2020-01-02 17:30:25 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ function sub(index, entry, arg) {
alInfo.hide();
});
domain.remove();
if($(list+" li").length < 1)
if($(list+" li").length === 0)
{
$(heading).fadeOut(100);
}

View File

@@ -102,7 +102,7 @@ $(document).ready(function() {
}
// Set hostname to "N/A" if not available
if(!data.name || data.name.length < 1)
if(!data.name || data.name.length === 0)
{
$("td:eq(3)", row).html("N/A");
}