From 48e10161f53fb828e0debfed1489d01075e3402d Mon Sep 17 00:00:00 2001 From: BuildTools Date: Mon, 30 Aug 2021 22:36:26 -0400 Subject: [PATCH] Autoupdate --- webroot/js/location.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webroot/js/location.js b/webroot/js/location.js index ab1a859..91ed60b 100644 --- a/webroot/js/location.js +++ b/webroot/js/location.js @@ -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; }