summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-07-26 21:12:32 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-07-26 21:12:32 +0200
commite93e38fe5b05053ef8640d3aba4288e91299f2e6 (patch)
tree8b119d15a58f492092aa483cd7f6bd5d0c186501
parent94f55801d907058021db37fed1e122ce8f7d6134 (diff)
geolocation: correctly pass backend
-rw-r--r--public/static/js/geolocation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js
index 985c15c..064e9f5 100644
--- a/public/static/js/geolocation.js
+++ b/public/static/js/geolocation.js
@@ -62,7 +62,7 @@ $(document).ready(function() {
};
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);
};