icao should be part of the source, not the location

This commit is contained in:
Jakob Ketterl 2023-09-06 15:53:08 +02:00
parent 26896cf2d5
commit abc5cd177e
3 changed files with 7 additions and 10 deletions

View file

@ -481,7 +481,7 @@ $(function(){
distance = " at " + distanceKm(receiverMarker.position, marker.position) + " km";
}
var title;
if (marker.icao) {
if (marker.source.icao || marker.source.flight) {
title = linkifyAircraft(source, marker.identification);
if ('altitude' in marker) {
commentString += '<div>Altitude: ' + marker.altitude + ' ft</div>';