From 04fb77903775969f0c5b9b50c83e7370128848fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 30 Apr 2015 10:54:39 +0200 Subject: [PATCH] Fix last commit --- web/static/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/main.js b/web/static/main.js index a255cb7..3ace342 100644 --- a/web/static/main.js +++ b/web/static/main.js @@ -113,10 +113,10 @@ globFct.poller(jobID, function(data){ scope.ipv4 = data[0]; scope.ipv6 = data[1]; - if (scope.ipv4.length === 0){ + if (!scope.ipv4){ scope.ipv4 = ['Unable to resolve in IPv4']; } - if (scope.ipv6.length === 0){ + if (!scope.ipv6){ scope.ipv6 = ['Unable to resolve in IPv6']; } });