diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-08-21 09:41:15 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-08-21 09:41:15 +0200 |
commit | e8437a7c362796ed81b3f6fe8a025349cf391871 (patch) | |
tree | fa2dcc405d6718fc876f1cbd2f837815173ea1e7 /static/v0/js/geolocation.js | |
parent | 4f136045853cc97407afdb35a501b40bfb5469c5 (diff) |
geolocation.js: Fix off-by-1000 in km distances
Diffstat (limited to 'static/v0/js/geolocation.js')
-rw-r--r-- | static/v0/js/geolocation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/v0/js/geolocation.js b/static/v0/js/geolocation.js index 4f520b9..aba8b10 100644 --- a/static/v0/js/geolocation.js +++ b/static/v0/js/geolocation.js @@ -30,7 +30,7 @@ document.addEventListener("DOMContentLoaded", function() { note.className = "distance"; if (result.distance >= 1000) { - note.textContent = result.distance.toFixed(1) + " km" + note.textContent = (result.distance / 1000).toFixed(1) + " km" } else { note.textContent = result.distance + " m" } |