locate-test sets the user location, so setting the user location should not break if mobileclient is not available
This commit is contained in:
parent
7836cf41a7
commit
058ff148cf
1 changed files with 1 additions and 1 deletions
|
@ -1846,7 +1846,7 @@ c3nav = {
|
||||||
$('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('location_disabled'));
|
$('.locationinput .locate, .leaflet-control-user-location a').text(c3nav._map_material_icon('location_disabled'));
|
||||||
$('.leaflet-control-user-location a').toggleClass('control-disabled', true);
|
$('.leaflet-control-user-location a').toggleClass('control-disabled', true);
|
||||||
}
|
}
|
||||||
if (mobileclient.isCurrentLocationRequested && mobileclient.isCurrentLocationRequested()) {
|
if (typeof mobileclient !== 'undefined' && mobileclient.isCurrentLocationRequested && mobileclient.isCurrentLocationRequested()) {
|
||||||
if (location) {
|
if (location) {
|
||||||
c3nav._goto_user_location_click();
|
c3nav._goto_user_location_click();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue