Skip to content

Commit 119c37f

Browse files
committed
Temp fix: hardcoded URLs
1 parent 1893f41 commit 119c37f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

static/js/data_output.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var getOutputs = function() {
6868

6969
var dataRequest = new XMLHttpRequest();
7070
dataRequest.onload = displayResults;
71-
dataRequest.open( "GET", 'http://localhost:5000/data/?key=' +
71+
dataRequest.open( "GET", 'http://gapminder-api.herokuapp.com/data/?key=' +
7272
window.datasets[window.currentDataset] +
7373
'&year=' + year + '&country=' + country);
7474
dataRequest.send();

static/js/datasets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ window.datasets = {};
1616

1717
var keysRequest = new XMLHttpRequest();
1818
keysRequest.onload = showInputKeys;
19-
keysRequest.open( "GET", 'http://localhost:5000/datasets/');
19+
keysRequest.open( "GET", 'http://gapminder-api.herokuapp.com/datasets/');
2020
keysRequest.send();
2121

static/js/year_country.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var getDatasetOptions = function() {
5050

5151
var dataRequest = new XMLHttpRequest();
5252
dataRequest.onload = displayOptions;
53-
dataRequest.open( "GET", 'http://localhost:5000/data/help/?key=' +
53+
dataRequest.open( "GET", 'http://gapminder-api.herokuapp.com/data/help/?key=' +
5454
window.datasets[window.currentDataset]);
5555
dataRequest.send();
5656
}

0 commit comments

Comments
 (0)