Skip to content

Commit 14f748b

Browse files
change habitat url
1 parent 55358f1 commit 14f748b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/tracker.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ var receivers_url = "//spacenear.us/tracker/receivers.php";
55
var predictions_url = "//spacenear.us/tracker/get_predictions.php?vehicles=";
66

77
var habitat_max = 400;
8-
var habitat_url = "//habitat.habhub.org/habitat/";
8+
//var habitat_url = "//habitat.habhub.org/habitat/";
9+
var habitat_url = "/habitat/";
910
var habitat_url_payload_telemetry = habitat_url + "_design/payload_telemetry/_view/payload_time?startkey=[%22{ID}%22,{START}]&endkey=[%22{ID}%22,{END}]&include_docs=true&limit=" + habitat_max + "&skip=";
1011

1112
var host_url = "";
@@ -1313,9 +1314,9 @@ var mapInfoBox_handle_path_fetch = function(id,vehicle) {
13131314
var ishabitat = id.length == 64
13141315

13151316
if(ishabitat) {
1316-
var url = '//habitat.habhub.org/habitat/' + id;
1317+
var url = habitat_url + id;
13171318
} else {
1318-
var url = "//spacenear.us/tracker/datanew.php?mode=single&format=json&position_id=" + id;
1319+
var url = data_url + "?mode=single&format=json&position_id=" + id;
13191320
}
13201321

13211322
$.getJSON(url, function(data) {

0 commit comments

Comments
 (0)