Added a simple error message

master
Keith Irwin 2017-08-07 18:01:12 -04:00
parent 629f3f31b9
commit bd92d4b74c
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ function updateStreetView(loc){
}
// Track GPS location
if (!navigator.geolocation){ /* Show error */ }
if (!navigator.geolocation){
alert("Geolocation not available!");
}
else { navigator.geolocation.watchPosition(
// Got location