Fix JS error on non-mobile devices (issue #4239)
Fix JS error on non-mobile devices (issue #4239)

CapeSepias/Leaflet,Leaflet/Leaflet,CapeSepias/Leaflet,Leaflet/Leaflet,CapeSepias/Leaflet,Leaflet/Leaflet