Use https://getcontents.herokuapp.com for ssl
parent
09395d800d
commit
d167c73d02
|
@ -142,7 +142,7 @@ function loadWeather() {
|
||||||
var request = $.ajax({
|
var request = $.ajax({
|
||||||
type: 'get',
|
type: 'get',
|
||||||
// fixme: use an api that supports https
|
// fixme: use an api that supports https
|
||||||
url: 'http://api.openweathermap.org/data/2.5/weather?units=metric&q=' + city + ',' + country + '&appid=' + appid,
|
url: 'https://getcontents.herokuapp.com/?url=http://api.openweathermap.org/data/2.5/weather?units=metric&q=' + city + ',' + country + '&appid=' + appid,
|
||||||
complete: function( response ) {
|
complete: function( response ) {
|
||||||
|
|
||||||
data = JSON.parse( response.responseText );
|
data = JSON.parse( response.responseText );
|
||||||
|
|
Loading…
Reference in New Issue