From 4d2e0e97e046c9ca17dd9d7f5454b787a8878d58 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sun, 4 Nov 2018 13:42:38 +0000 Subject: [PATCH] added motion detection --- src/service-worker.js | 2 +- src/v1/js/Location.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service-worker.js b/src/service-worker.js index 9336b46..12a5fb2 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.973' }; +const CACHE_VERSION = { 'version': '0.0.974' }; const PRECACHE = `jubileeData-${CACHE_VERSION.version}`; const RUNTIME = 'runtime'; diff --git a/src/v1/js/Location.js b/src/v1/js/Location.js index 499ecd0..5ac061e 100644 --- a/src/v1/js/Location.js +++ b/src/v1/js/Location.js @@ -122,7 +122,7 @@ const LocationModel = Backbone.Model.extend({ }; const updatelocationthrottled = _.throttle(updateLocation, 120000); - const updateMotionhrottled = _.throttle(updateLocation, 15000); + const updateMotionhrottled = _.throttle(updateMotion, 15000); geolocation.on('change', function (position) { console.log('Location update');