diff --git a/src/service-worker.js b/src/service-worker.js index b6d512a..39cddce 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -const CACHE_VERSION = { 'version': '0.0.890' }; +const CACHE_VERSION = { 'version': '0.0.891' }; const PRECACHE = `jubileeData-${CACHE_VERSION.version}`; const RUNTIME = 'runtime'; diff --git a/src/v1/js/Location.js b/src/v1/js/Location.js index 159678b..a00e6bd 100644 --- a/src/v1/js/Location.js +++ b/src/v1/js/Location.js @@ -53,6 +53,7 @@ const LocationModel = Backbone.Model.extend({ const location = { 'latitude': position.coords.latitude, 'longitude': position.coords.longitude, 'timestamp': position.timestamp }; const now = new Date(); + console.log(now.getTime(), now.getTime() - this.throttler); if (now.getTime() - this.throttler > 30000) { this.processPosition(location); this.throttler = now.getTime() + 1000;