diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/static/js/geostop.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/static/js/geostop.js b/public/static/js/geostop.js index 80e8311..00699ec 100644 --- a/public/static/js/geostop.js +++ b/public/static/js/geostop.js @@ -61,7 +61,8 @@ $(function() { }; const processLocation = function(loc) { - $.post('/_geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude}, processResult).fail(function(jqXHR, textStatus, errorThrown) { + const param = new URLSearchParams(window.location.search); + $.post('/_geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude, hafas: param.get('hafas')}, processResult).fail(function(jqXHR, textStatus, errorThrown) { removeStatus(); showError("Netzwerkfehler: ", textStatus, errorThrown); }); |