Skip to content

Commit

Permalink
issue mattrossman#69 - used cached GPS location
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 authored Nov 19, 2023
1 parent a84a3a7 commit 16b5cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkjs/weather/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ WeatherProvider.prototype.withGpsCoordinates = function(callback) {
// callback(lattitude, longtitude)
var options = {
enableHighAccuracy: true,
maximumAge: 10000,
maximumAge: 10000, // used cached GPS location if unable to get live location
timeout: 10000
};
function success(pos) {
Expand Down Expand Up @@ -232,4 +232,4 @@ WeatherProvider.prototype.getPayload = function() {
return payload;
}

module.exports = WeatherProvider;
module.exports = WeatherProvider;

0 comments on commit 16b5cb0

Please sign in to comment.