Commit 6ce12de9 authored by Zac Wood's avatar Zac Wood

Fixed bad paramenters when cache expired

parent 416bb11c
...@@ -49,7 +49,7 @@ function getWeather(location) { ...@@ -49,7 +49,7 @@ function getWeather(location) {
// Data is expired, retrieve again. // Data is expired, retrieve again.
console.log("Data Age: " + timeDiff) console.log("Data Age: " + timeDiff)
console.log("Cache expired. Retrieving...") console.log("Cache expired. Retrieving...")
var weatherData = getWeatherFromAPI(latitude, longitude); var weatherData = getWeatherFromAPI(location.lat, location.long);
// Check if there was an error in the API call. // Check if there was an error in the API call.
if(weatherData === undefined) { if(weatherData === undefined) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment