Skip to content

Commit f70a4b4

Browse files
authored
Update tracker.js
1 parent 161301b commit f70a4b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

js/tracker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ function launchSitePredictions(times, station, properties, marker) {
720720
var lon = ((360 + (position[1] % 360)) % 360)
721721
var url = "https://predict.cusf.co.uk/api/v1/?launch_latitude=" + position[0] + "&launch_longitude=" + lon + "&launch_datetime=" + dates[i] + "&ascent_rate=" + properties[0] + "&burst_altitude=" + properties[2] + "&descent_rate=" + properties[1];
722722
//var url = "https://api.v2.sondehub.org/tawhiri?launch_latitude=" + position[0] + "&launch_longitude=" + lon + "&launch_datetime=" + dates[i] + "&ascent_rate=" + properties[0] + "&burst_altitude=" + properties[2] + "&descent_rate=" + properties[1];
723-
showPrediction(url).done(handleData).fail(handleError);
723+
showPrediction(url).done(handleData).fail(handleError);
724724
}
725725
function handleData(data) {
726726
completed += 1;
@@ -814,11 +814,11 @@ function plotPrediction (data, dates, marker, properties) {
814814
}
815815

816816
function showPrediction(url) {
817-
return $.ajax({
818-
type: "GET",
819-
url: url,
820-
dataType: "json",
821-
});
817+
return $.ajax({
818+
type: "GET",
819+
url: url,
820+
dataType: "json",
821+
});
822822
}
823823

824824
function deletePredictions(marker) {

0 commit comments

Comments
 (0)