more work on extracting airplane infos

This commit is contained in:
Jakob Ketterl 2023-09-08 15:38:48 +02:00
parent 018104617d
commit 095bdf38bf
7 changed files with 186 additions and 39 deletions

View file

@ -404,10 +404,11 @@ $(function(){
};
var linkifyAircraft = function(source, identification) {
var aircraftString = identification || source.icao || source.flight;
var aircraftString = identification || source.humanReadable || source.flight || source.icao;
var link = false;
switch (aircraft_tracking_service) {
case 'flightaware':
if (!source.icao) break;
link = 'https://flightaware.com/live/modes/' + source.icao;
if (identification) link += "/ident/" + identification
link += '/redirect';