summaryrefslogtreecommitdiff
path: root/static/v0/js/geolocation.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-08-21 09:41:15 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-08-21 09:41:15 +0200
commite8437a7c362796ed81b3f6fe8a025349cf391871 (patch)
treefa2dcc405d6718fc876f1cbd2f837815173ea1e7 /static/v0/js/geolocation.js
parent4f136045853cc97407afdb35a501b40bfb5469c5 (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.js2
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"
}