Hi there,
Almost all is well with my Weather App. The one thing I’m trying to add is a bit of code that displays an error message to the user if geolocation data is blocked. I tried adding this if statement to the top of my code:
if (!navigator.geolocation){
$("#loaderDiv").fadeOut("fast");
$("#conditions").html("Unable to find your current location.");
}
But when I try blocking location information in different browsers (Safari, Chrome, etc) the loader just keeps bouncing rather than disappearing and adding the error message. Any thoughts? Everything else seems to be running fine. Here’s a link to the full project:
Thanks!