From 8f48b9952e62f29c286cafffa4bd21b63e6db942 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sun, 4 Nov 2018 14:09:59 +0000 Subject: [PATCH] added motion detection --- src/service-worker.js | 2 +- src/v1/js/Location.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/service-worker.js b/src/service-worker.js index 49d9b2f..059ffc1 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.979' }; +const CACHE_VERSION = { 'version': '0.0.980' }; const PRECACHE = `jubileeData-${CACHE_VERSION.version}`; const RUNTIME = 'runtime'; diff --git a/src/v1/js/Location.js b/src/v1/js/Location.js index b4c6ce2..7cea42a 100644 --- a/src/v1/js/Location.js +++ b/src/v1/js/Location.js @@ -106,12 +106,12 @@ const LocationModel = Backbone.Model.extend({ console.log('now ts', ts); motion.prev = Object.assign({}, motion.cur); - console.log('a*', motion); + console.log('a*', JSON.stringify(motion)); motion.cur.lat = latitude; motion.cur.lon = longitude; motion.cur.ts = ts; - console.log('b*', motion); + console.log('b*', JSON.stringify(motion)); const dist = distance(motion.prev.lat, motion.prev.lon, latitude, longitude); console.log('Prev', motion.prev);