From 3a0178bedc890c391fed56cfc67d9e79335deb20 Mon Sep 17 00:00:00 2001 From: d3adc0de Date: Thu, 23 Jul 2020 22:13:20 +0100 Subject: [PATCH] Fix country_code is null --- .../admin_ui/media/javascript/ui/panel/zombiesTreeList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/admin_ui/media/javascript/ui/panel/zombiesTreeList.js b/extensions/admin_ui/media/javascript/ui/panel/zombiesTreeList.js index 559e722382..3d0dc2689d 100644 --- a/extensions/admin_ui/media/javascript/ui/panel/zombiesTreeList.js +++ b/extensions/admin_ui/media/javascript/ui/panel/zombiesTreeList.js @@ -488,7 +488,7 @@ try{ balloon_text += "Hardware: " + hooked_browser.hw_name; balloon_text += "
"; - if (hooked_browser.country == 'Unknown') { + if ( !hooked_browser.country || !hooked_browser.country_code || hooked_browser.country == 'Unknown' ) { balloon_text += " "; balloon_text += "Location: Unknown"; } else { @@ -506,7 +506,7 @@ try{ text += " "; text += " "; - if (hooked_browser.country == 'Unknown') { + if ( !hooked_browser.country || !hooked_browser.country_code || hooked_browser.country == 'Unknown' ) { text += " "; } else { text += " ";