diff options
Diffstat (limited to 'static/v0/js')
-rw-r--r-- | static/v0/js/geolocation.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/static/v0/js/geolocation.js b/static/v0/js/geolocation.js index 1ea4ee5..4f520b9 100644 --- a/static/v0/js/geolocation.js +++ b/static/v0/js/geolocation.js @@ -11,6 +11,12 @@ document.addEventListener("DOMContentLoaded", function() { const processResult = function(results) { const list = document.createElement("ul"); list.className = "stops"; + + if (results.error) { + showError("Backend-Fehler:", results.msg); + return; + } + for (var result in results) { result = results[result]; const listentry = document.createElement("li"); |