geolocation: correctly pass backend

This commit is contained in:
Birte Kristina Friesel 2024-07-26 21:12:32 +02:00
parent 94f55801d9
commit e93e38fe5b
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -62,7 +62,7 @@ $(document).ready(function() {
}; };
const processLocation = function(loc) { const processLocation = function(loc) {
const backend = $('div.geolocation > button').data('backend'); const backend = $('div.geolocation').data('backend');
$.post('/geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude, backend: backend}, processResult); $.post('/geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude, backend: backend}, processResult);
}; };