try to fix the geo error handling

This commit is contained in:
Ted Unangst 2019-09-28 00:16:43 -04:00
parent 2cfa3a71e2
commit a172d9c91e
1 changed files with 4 additions and 2 deletions

View File

@ -213,8 +213,10 @@ function fillcheckin() {
el = document.getElementById("placelonginput") el = document.getElementById("placelonginput")
el.value = Math.round(pos.coords.longitude * precision) / precision el.value = Math.round(pos.coords.longitude * precision) / precision
}, function(err) { }, function(err) {
var el = document.getElementById("placenamenput") var el = document.getElementById("placedescriptor")
el.innerHTML = err.message el.style.display = "block"
el = document.getElementById("placenameinput")
el.value = err.message
}) })
} }
} }