mirror of
https://github.com/derf/travelynx
synced 2024-12-02 01:09:11 +00:00
geolocation: correctly pass backend
This commit is contained in:
parent
94f55801d9
commit
e93e38fe5b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue