Position coordinates limited to 2 digits

master
echarp 2 years ago
parent e488e947cd
commit 42a112b994
  1. 2
      app/assets/javascripts/pages.js.coffee

@ -14,4 +14,4 @@ $(document).on 'turbolinks:load', ->
showPosition = (position) ->
location.replace window.goto.replace '[me]',
"[#{position.coords.latitude}, #{position.coords.longitude}]"
"[#{position.coords.latitude.toFixed(2)}, #{position.coords.longitude.toFixed(2)}]"

Loading…
Cancel
Save