diff --git a/html/dbloader.js b/html/dbloader.js index ac598c3..a78a707 100644 --- a/html/dbloader.js +++ b/html/dbloader.js @@ -95,6 +95,7 @@ function getIcaoAircraftTypeData(aircraftData, defer) { } function lookupIcaoAircraftType(aircraftData, defer) { + aircraftData.vType = aircraftData.desc; if (_aircraft_type_cache !== null && "t" in aircraftData) { var typeDesignator = aircraftData.t.toUpperCase(); if (typeDesignator in _aircraft_type_cache) { diff --git a/html/planeObject.js b/html/planeObject.js index cb110c3..b45a6b3 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -122,6 +122,10 @@ function PlaneObject(icao) { this.typeDescription = data.desc; } + if (data.vType != null) { + this.vType = data.vType; + } + if ("wtc" in data) { this.wtc = data.wtc; }