length cannot be negative

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2019-12-20 19:12:46 +02:00
parent 03b3a1d604
commit 25af37509e
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");
}