diff --git a/html/dbloader.js b/html/dbloader.js index 40896ce..ef9b0e4 100644 --- a/html/dbloader.js +++ b/html/dbloader.js @@ -73,7 +73,7 @@ function request_from_db(icao, level, defer) { function getIcaoAircraftTypeData(aircraftData, defer) { if (_aircraft_type_cache === null) { - $.getJSON(databaseFolder + "/icao_aircraft_types.json") + $.getJSON(databaseFolder + "/icao_aircraft_types.js") .done(function(typeLookupData) { _aircraft_type_cache = typeLookupData; }) diff --git a/html/script.js b/html/script.js index 01df1a8..fd6bb1d 100644 --- a/html/script.js +++ b/html/script.js @@ -564,11 +564,11 @@ function initialize() { // Wait for history item downloads and append them to the buffer push_history(); // this will be needed later - $.getJSON(databaseFolder + "/icao_aircraft_types.json") + $.getJSON(databaseFolder + "/icao_aircraft_types.js") .done(function(typeLookupData) { _aircraft_type_cache = typeLookupData; }) - $.getJSON(databaseFolder + "/airport-coords.json") + $.getJSON(databaseFolder + "/airport-coords.js") .done(function(data) { _airport_coords_cache = data; const search = new URLSearchParams(window.location.search);