From 3889d75c043ec3d23fdbbb78ca40bfea4893d540 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 26 Feb 2020 17:22:58 +0100 Subject: [PATCH] change filenames for two json files (cloudflare caching) --- html/dbloader.js | 2 +- html/script.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);