Added a simple error message
parent
629f3f31b9
commit
bd92d4b74c
|
@ -86,7 +86,9 @@ function updateStreetView(loc){
|
||||||
}
|
}
|
||||||
|
|
||||||
// Track GPS location
|
// Track GPS location
|
||||||
if (!navigator.geolocation){ /* Show error */ }
|
if (!navigator.geolocation){
|
||||||
|
alert("Geolocation not available!");
|
||||||
|
}
|
||||||
else { navigator.geolocation.watchPosition(
|
else { navigator.geolocation.watchPosition(
|
||||||
|
|
||||||
// Got location
|
// Got location
|
||||||
|
|
Loading…
Reference in New Issue