We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec6b0cc commit ed3a410Copy full SHA for ed3a410
js/tracker.js
@@ -2034,17 +2034,18 @@ function updatePredictions(r) {
2034
2035
var i = 0, ii = r.length;
2036
for(; i < ii; i++) {
2037
- if(r[i].vehicle == "XX") continue;
2038
- if(r[i].vehicle in hysplit && r[i].vehicle in vehicles) {
2039
- removePrediction(vcallsign);
2040
- continue;
2041
- }
2042
-
2043
var vcallsign = r[i].vehicle;
2044
+ if(vcallsign == "XX") continue;
+
2045
if(vehicles.hasOwnProperty(vcallsign)) {
2046
var vehicle = vehicles[vcallsign];
2047
+ if(vcallsign in hysplit || vehicle.marker.mode == "landed") {
+ removePrediction(vcallsign);
+ continue;
+ }
2048
2049
if(vehicle.prediction && vehicle.prediction.time == r[i].time) {
2050
continue;
2051
}
0 commit comments