Autoupdate

This commit is contained in:
BuildTools 2021-08-30 22:36:26 -04:00
parent c275cfb291
commit 48e10161f5
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ function Location() { // onReady, onRefresh, onAllComplete
// set the expiration date/time
_observations[0].xdate = dateFns.addMinutes(json.lastBuildDate, json.ttl);
setTimeout(checkRefresh, getRandom(5000, 10000));
setTimeout(function() {checkRefresh(loclat + "," + loclong)}, 100000);
} else {
$this.trigger('init');
}
@ -155,7 +155,7 @@ function Forecast(type, lat, lon, readyCallback) {
// check the expiration
if ( that.data!={} && dateFns.isFuture( that.data.xdate ) ) {
setTimeout(checkRefresh, getRandom(5000, 10000));
setTimeout(function() {checkRefresh}, 100000);
return;
}