diff --git a/html/script.js b/html/script.js index 4ba0245..3d11f76 100644 --- a/html/script.js +++ b/html/script.js @@ -1644,6 +1644,10 @@ jQuery('#selected_altitude_geom1') }); if (routeApiUrl) { + if (location.protocol == 'http:' && routeApiUrl == "https://adsb.im/api/0/routeset") { + // adsb.im API provider kindly asks that tar1090 uses http for the route API if possible + routeApiUrl = "http://adsb.im/api/0/routeset"; + } new Toggle({ key: "useRouteAPI", display: "Lookup route",