From e93e38fe5b05053ef8640d3aba4288e91299f2e6 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 26 Jul 2024 21:12:32 +0200 Subject: [PATCH] geolocation: correctly pass backend --- public/static/js/geolocation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); };