Fix incorrect test for Mode AC planeObject
This commit is contained in:
parent
4ddb129b5e
commit
15c66a379a
|
@ -216,7 +216,7 @@ PlaneObject.prototype.getDataSource = function() {
|
||||||
|
|
||||||
var emptyHexRegex = /^0*$/;
|
var emptyHexRegex = /^0*$/;
|
||||||
// No position and no ICAO hex code - Mode A/C
|
// 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';
|
return 'mode_ac';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue