From 15c66a379a18bf851b62dfc3677a6a095f2524e8 Mon Sep 17 00:00:00 2001 From: Carlos Salaverria Date: Tue, 6 Sep 2016 17:13:21 -0500 Subject: [PATCH] Fix incorrect test for Mode AC planeObject --- public_html/planeObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index 77d6b4d..1671139 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -216,7 +216,7 @@ PlaneObject.prototype.getDataSource = function() { var emptyHexRegex = /^0*$/; // No position and no ICAO hex code - Mode A/C - if (this.hex === null || emptyHexRegex.test(this.hex)) { + if (emptyHexRegex.test(this.icao)) { return 'mode_ac'; }