From 5a7273998d0782837a750ca603f408c9527df2f7 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 21 Feb 2019 20:14:20 -0500 Subject: [PATCH] Added logging of speed to console --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 6137965..3386726 100644 --- a/main.js +++ b/main.js @@ -11,6 +11,7 @@ if (!'geolocation' in navigator) { const WID = navigator.geolocation.watchPosition( function (loc) { // got speed if (loc.coords.speed) { + console.log('Got speed:',loc.coords.speed) // convert to mph and display speedDiv.innerHTML = (2.23693629205*loc.coords.speed).toFixed(1) } else {